Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix: Change filled appearances' normal state's token.",
"packageName": "@fluentui/react-textarea",
"email": "esteban.230@hotmail.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,17 @@ const useRootStyles = makeStyles({
},
},

filled: {
...shorthands.border(tokens.strokeWidthThin, 'solid', tokens.colorTransparentStroke),
':hover,:focus-within': {
...shorthands.borderColor(tokens.colorTransparentStrokeInteractive),
},
},
'filled-darker': {
backgroundColor: tokens.colorNeutralBackground3,
...shorthands.border(tokens.strokeWidthThin, 'solid', tokens.colorTransparentStrokeInteractive),
},

'filled-lighter': {
backgroundColor: tokens.colorNeutralBackground1,
...shorthands.border(tokens.strokeWidthThin, 'solid', tokens.colorTransparentStrokeInteractive),
},

outline: {
Expand Down Expand Up @@ -217,14 +220,16 @@ const useTextareaResizeStyles = makeStyles({
* Apply styling to the Textarea slots based on the state
*/
export const useTextareaStyles_unstable = (state: TextareaState): TextareaState => {
const disabled = state.textarea.disabled;
const { size, appearance, resize } = state;
const disabled = state.textarea.disabled;
const filled = appearance.startsWith('filled');

const rootStyles = useRootStyles();
state.root.className = mergeClasses(
textareaClassNames.root,
rootStyles.base,
rootStyles[appearance],
filled && rootStyles.filled,
disabled && rootStyles.disabled,
!disabled && rootStyles.interactive,
!disabled && appearance === 'outline' && rootStyles.outlineInteractive,
Expand Down