diff --git a/change/@uifabric-azure-themes-3096bd06-96bf-4273-8b2a-8e659aa064a2.json b/change/@uifabric-azure-themes-3096bd06-96bf-4273-8b2a-8e659aa064a2.json new file mode 100644 index 00000000000000..7de9290fb92e1c --- /dev/null +++ b/change/@uifabric-azure-themes-3096bd06-96bf-4273-8b2a-8e659aa064a2.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "high contrast dropdown style fix", + "packageName": "@uifabric/azure-themes", + "email": "30805892+Jacqueline-ms@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/packages/azure-themes/src/azure/AzureColors.ts b/packages/azure-themes/src/azure/AzureColors.ts index e73202c8323dec..3f1b532a3927e9 100644 --- a/packages/azure-themes/src/azure/AzureColors.ts +++ b/packages/azure-themes/src/azure/AzureColors.ts @@ -300,6 +300,15 @@ export const DarkSemanticColors: IAzureSemanticColors = { }, focus: BaseColors.GRAY_A19F9D, }, + dropDown: { + background: { + rest: BaseColors.GRAY_252423, + hover: BaseColors.GRAY_323130, + }, + text: { + hovered: BaseColors.WHITE, + }, + }, item: { hover: BaseColors.GRAY_323130, select: BaseColors.GRAY_3B3A39, @@ -540,6 +549,15 @@ export const HighContrastDarkSemanticColors: IAzureSemanticColors = { }, focus: BaseColors.GRAY_A19F9D, }, + dropDown: { + background: { + rest: BaseColors.GRAY_1B1A19, + hover: BaseColors.TRANSPARENT, + }, + text: { + hovered: BaseColors.WHITE, + }, + }, item: { hover: BaseColors.BLUE_00FFFF, select: BaseColors.GRAY_808080_050, @@ -780,6 +798,15 @@ export const LightSemanticColors: IAzureSemanticColors = { }, focus: BaseColors.GRAY_605E5C, }, + dropDown: { + background: { + rest: BaseColors.WHITE, + hover: BaseColors.GRAY_F3F2F1, + }, + text: { + hovered: BaseColors.GRAY_302928, + }, + }, item: { hover: BaseColors.GRAY_F3F2F1, select: BaseColors.GRAY_EDEBE9, @@ -1020,6 +1047,15 @@ export const HighContrastLightSemanticColors: IAzureSemanticColors = { }, focus: BaseColors.GRAY_323130, }, + dropDown: { + background: { + rest: BaseColors.WHITE, + hover: BaseColors.TRANSPARENT, + }, + text: { + hovered: BaseColors.BLACK, + }, + }, item: { hover: BaseColors.PURPLE_800080, select: BaseColors.GRAY_EDEBE9, diff --git a/packages/azure-themes/src/azure/AzureThemeDark.ts b/packages/azure-themes/src/azure/AzureThemeDark.ts index 193bae97cc9a92..682908fa597445 100644 --- a/packages/azure-themes/src/azure/AzureThemeDark.ts +++ b/packages/azure-themes/src/azure/AzureThemeDark.ts @@ -52,6 +52,9 @@ const darkExtendedSemanticColors: Partial = { datePickerSelectionText: DarkSemanticColors.datePicker.rest.text, disabledBackground: CommonSemanticColors.backgrounds.disabled, disabledBodyText: DarkSemanticColors.text.disabled, + dropdownBackground: DarkSemanticColors.dropDown.background.rest, + dropdownItemHover: DarkSemanticColors.dropDown.text.hovered, + dropdownTextHovered: DarkSemanticColors.dropDown.text.hovered, errorBackground: DarkSemanticColors.controlOutlines.error, errorText: DarkSemanticColors.text.error, focusBorder: DarkSemanticColors.controlOutlines.accent, diff --git a/packages/azure-themes/src/azure/AzureThemeHighContrastDark.ts b/packages/azure-themes/src/azure/AzureThemeHighContrastDark.ts index 3aac1bfe3a442c..7f40fd2c480dff 100644 --- a/packages/azure-themes/src/azure/AzureThemeHighContrastDark.ts +++ b/packages/azure-themes/src/azure/AzureThemeHighContrastDark.ts @@ -53,6 +53,9 @@ const highContrastDarkExtendedSemanticColors: Partial = datePickerSelectionText: HighContrastDarkSemanticColors.datePicker.rest.text, disabledBackground: CommonSemanticColors.backgrounds.disabled, disabledBodyText: HighContrastDarkSemanticColors.text.disabled, + dropdownBackground: HighContrastDarkSemanticColors.dropDown.background.rest, + dropdownItemHover: HighContrastDarkSemanticColors.dropDown.background.hover, + dropdownTextHovered: HighContrastDarkSemanticColors.dropDown.text.hovered, errorBackground: HighContrastDarkSemanticColors.controlOutlines.error, errorText: HighContrastDarkSemanticColors.text.error, focusBorder: HighContrastDarkSemanticColors.controlOutlines.accent, diff --git a/packages/azure-themes/src/azure/AzureThemeHighContrastLight.ts b/packages/azure-themes/src/azure/AzureThemeHighContrastLight.ts index 940bd2a15fd16d..77b647752cb214 100644 --- a/packages/azure-themes/src/azure/AzureThemeHighContrastLight.ts +++ b/packages/azure-themes/src/azure/AzureThemeHighContrastLight.ts @@ -53,6 +53,9 @@ const highContrastLightExtendedSemanticColors: Partial datePickerSelectionText: HighContrastLightSemanticColors.datePicker.rest.text, disabledBackground: CommonSemanticColors.backgrounds.disabled, disabledBodyText: HighContrastLightSemanticColors.text.disabled, + dropdownBackground: HighContrastLightSemanticColors.dropDown.background.rest, + dropdownItemHover: HighContrastLightSemanticColors.dropDown.background.hover, + dropdownTextHovered: HighContrastLightSemanticColors.dropDown.text.hovered, errorBackground: HighContrastLightSemanticColors.controlOutlines.error, errorText: HighContrastLightSemanticColors.text.error, focusBorder: HighContrastLightSemanticColors.controlOutlines.accent, diff --git a/packages/azure-themes/src/azure/AzureThemeLight.ts b/packages/azure-themes/src/azure/AzureThemeLight.ts index 505c39c92b34dc..c35dca40222a14 100644 --- a/packages/azure-themes/src/azure/AzureThemeLight.ts +++ b/packages/azure-themes/src/azure/AzureThemeLight.ts @@ -53,6 +53,9 @@ const lightExtendedSemanticColors: Partial = { datePickerSelectionText: LightSemanticColors.datePicker.rest.text, disabledBackground: CommonSemanticColors.backgrounds.disabled, disabledBodyText: LightSemanticColors.text.disabled, + dropdownBackground: LightSemanticColors.dropDown.background.rest, + dropdownItemHover: LightSemanticColors.dropDown.background.hover, + dropdownTextHovered: LightSemanticColors.dropDown.text.hovered, errorBackground: LightSemanticColors.controlOutlines.error, errorText: LightSemanticColors.text.error, focusBorder: LightSemanticColors.controlOutlines.accent, diff --git a/packages/azure-themes/src/azure/IAzureSemanticColors.ts b/packages/azure-themes/src/azure/IAzureSemanticColors.ts index bcbf5d910f4111..4c28a3aba28fbf 100644 --- a/packages/azure-themes/src/azure/IAzureSemanticColors.ts +++ b/packages/azure-themes/src/azure/IAzureSemanticColors.ts @@ -143,6 +143,15 @@ export interface IAzureSemanticColors { }; focus: string; }; + dropDown: { + background: { + rest: string; + hover: string; + }; + text: { + hovered: string; + }; + }; item: { hover: string; select: string; diff --git a/packages/azure-themes/src/azure/IExtendedSemanticColors.ts b/packages/azure-themes/src/azure/IExtendedSemanticColors.ts index f1ced76c00edba..38900c815fad65 100644 --- a/packages/azure-themes/src/azure/IExtendedSemanticColors.ts +++ b/packages/azure-themes/src/azure/IExtendedSemanticColors.ts @@ -63,6 +63,9 @@ export interface IExtendedSemanticColors extends ISemanticColors { datePickerSelectionText: string; disabledBackground: string; disabledBodyText: string; + dropdownBackground: string; + dropdownItemHover: string; + dropdownTextHovered: string; errorBackground: string; errorText: string; focusBorder: string; diff --git a/packages/azure-themes/src/azure/styles/DropDown.styles.ts b/packages/azure-themes/src/azure/styles/DropDown.styles.ts index 3f9418e603d806..9b71f25ee1cb87 100644 --- a/packages/azure-themes/src/azure/styles/DropDown.styles.ts +++ b/packages/azure-themes/src/azure/styles/DropDown.styles.ts @@ -79,14 +79,14 @@ export const DropdownStyles = (props: IDropdownStyleProps): Partial