@@ -50,15 +50,24 @@ const DesktopIcon = (
50
50
</ svg >
51
51
) ;
52
52
53
- const HCGroupLabel = ( ) => {
53
+ const ColorSchemeGroupLabel = ( ) => {
54
+ return (
55
+ < div className = "pf-v6-c-menu__group-title" id = "theme-selector-color-scheme-title" >
56
+ Color scheme
57
+ </ div >
58
+ ) ;
59
+ } ;
60
+
61
+ const HighContrastGroupLabel = ( ) => {
54
62
const [ isPopoverOpen , setIsPopoverOpen ] = useState ( false ) ;
55
63
56
64
return (
57
- < h2 className = "pf-v6-c-menu__group-title" >
65
+ < div className = "pf-v6-c-menu__group-title" >
58
66
High contrast{ ' ' }
59
67
< Popover
68
+ onClick = { ( e ) => e . stopPropagation ( ) }
60
69
headerContent = { "Under development" }
61
- headerComponent = "h3 "
70
+ headerComponent = "h1 "
62
71
bodyContent = {
63
72
"We are still working to add high contrast support across all PatternFly components and extensions. This beta allows you to preview our progress."
64
73
}
@@ -81,7 +90,7 @@ const HCGroupLabel = () => {
81
90
/>
82
91
</ Popover > { ' ' }
83
92
< Label color = "blue" isCompact > Beta</ Label >
84
- </ h2 >
93
+ </ div >
85
94
)
86
95
} ;
87
96
@@ -144,8 +153,8 @@ export const ThemeSelector = ({ id }) => {
144
153
shouldFocusToggleOnSelect
145
154
onOpenChangeKeys = { [ 'Escape' ] }
146
155
>
147
- < SelectGroup label = { 'Color scheme' } labelHeadingLevel = "h2" >
148
- < SelectList aria-label = "Light/Dark theme switcher ">
156
+ < SelectGroup label = { ColorSchemeGroupLabel } >
157
+ < SelectList aria-labelledby = " theme-selector-color-scheme-title ">
149
158
< SelectOption value = { colorModes . SYSTEM } icon = { DesktopIcon } description = "Follow system preference" >
150
159
System
151
160
</ SelectOption >
@@ -159,7 +168,7 @@ export const ThemeSelector = ({ id }) => {
159
168
</ SelectGroup >
160
169
{ process . env . hasHighContrastSwitcher && ( < >
161
170
< Divider />
162
- < SelectGroup label = { HCGroupLabel } >
171
+ < SelectGroup label = { HighContrastGroupLabel } >
163
172
< MenuSearch >
164
173
< MenuSearchInput >
165
174
< ToggleGroup aria-label = "High contrast theme switcher" >
0 commit comments