Skip to content

Commit a8fd765

Browse files
authored
Remove textctlsubtleselectionhighlight (#3962)
* Remove usage of TextCtlSubtleSelectionHighlight * Change files * Update snapshot
1 parent a1c3aa2 commit a8fd765

File tree

6 files changed

+15
-7
lines changed

6 files changed

+15
-7
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "minor",
3+
"comment": "Remove usage of TextCtlSubtleSelectionHighlight",
4+
"packageName": "@fluentui-react-native/theme-types",
5+
"email": "email not defined",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "minor",
3+
"comment": "Remove usage of TextCtlSubtleSelectionHighlight",
4+
"packageName": "@fluentui-react-native/win32-theme",
5+
"email": "email not defined",
6+
"dependentChangeType": "patch"
7+
}

packages/theming/theme-types/src/palette.types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ export interface OfficePalette {
124124
TextCtlSubtleHover: ColorValue;
125125
TextCtlSubtlePressed: ColorValue;
126126
TextCtlSubtleDisabled: ColorValue;
127-
TextCtlSubtleSelectionHighlight: ColorValue;
128127

129128
// stroke colors (typically borders, outlines or underlines)
130129
StrokeCtlSubtle: ColorValue;

packages/theming/win32-theme/src/NativeModule/fallbackOfficeModule.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ const whiteColorsPalette: OfficePalette = {
7272
TextCtlSubtleHover: '#262626',
7373
TextCtlSubtlePressed: '#262626',
7474
TextCtlSubtleDisabled: '#B1B1B1',
75-
TextCtlSubtleSelectionHighlight: '#262626',
7675
StrokeCtlSubtle: '#C6C6C6',
7776
StrokeCtlSubtleHover: '#969696',
7877
StrokeCtlSubtlePressed: '#969696',

packages/theming/win32-theme/src/__tests__/__snapshots__/win32-theme.test.ts.snap

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2626,7 +2626,7 @@ exports[`createOfficeTheme test 1`] = `
26262626
"neutralForeground3Selected": "#424242",
26272627
"neutralForeground4": "#666666",
26282628
"neutralForegroundDisabled": "#B1B1B1",
2629-
"neutralForegroundInverted": "#262626",
2629+
"neutralForegroundInverted": "#ffffff",
26302630
"neutralForegroundInvertedLink": "#FFFFFF",
26312631
"neutralForegroundInvertedLinkHover": "#D2D2D2",
26322632
"neutralForegroundInvertedLinkPressed": "#B1B1B1",
@@ -2838,7 +2838,6 @@ exports[`createOfficeTheme test 1`] = `
28382838
"TextCtlSubtlePlaceholder": "#666666",
28392839
"TextCtlSubtlePressed": "#262626",
28402840
"TextCtlSubtleSelected": "#262626",
2841-
"TextCtlSubtleSelectionHighlight": "#262626",
28422841
"TextDisabled": "#B1B1B1",
28432842
"TextEmphasis": "#D83B01",
28442843
"TextEmphasis2": "#D83B01",
@@ -3322,7 +3321,6 @@ exports[`fallbackGetPalette test Random palette 1`] = `
33223321
"TextCtlSubtlePlaceholder": "#666666",
33233322
"TextCtlSubtlePressed": "#262626",
33243323
"TextCtlSubtleSelected": "#262626",
3325-
"TextCtlSubtleSelectionHighlight": "#262626",
33263324
"TextDisabled": "#B1B1B1",
33273325
"TextEmphasis": "#D83B01",
33283326
"TextEmphasis2": "#D83B01",
@@ -3465,7 +3463,6 @@ exports[`fallbackGetPalette test TaskPane palette 1`] = `
34653463
"TextCtlSubtlePlaceholder": "#666666",
34663464
"TextCtlSubtlePressed": "#262626",
34673465
"TextCtlSubtleSelected": "#262626",
3468-
"TextCtlSubtleSelectionHighlight": "#262626",
34693466
"TextDisabled": "#B1B1B1",
34703467
"TextEmphasis": "#D83B01",
34713468
"TextEmphasis2": "#D83B01",

packages/theming/win32-theme/src/createAliasesFromPalette.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export function createAliasesFromPalette(palette: OfficePalette, isHighContrast:
2323
compoundBrandForeground1Hover: palette.TextEmphasisHover,
2424
compoundBrandForeground1Pressed: palette.TextEmphasisPressed,
2525

26-
neutralForegroundInverted: palette.TextCtlSubtleSelectionHighlight,
2726
neutralForegroundOnBrand: palette.TextCtlEmphasis,
2827
neutralForegroundOnBrandHover: palette.TextCtlEmphasisHover,
2928
neutralForegroundOnBrandPressed: palette.TextCtlEmphasisPressed,

0 commit comments

Comments
 (0)