--- id: Context selector section: components subsection: menus cssPrefix: pf-v5-c-context-selector deprecated: true ---import './context-selector.css' ## Examples ### Basic ```html
``` ### Plain with text ```html
``` ### With footer ```html
``` ## Documentation ### Accessibility | Class | Applied to | Outcome | | -- | -- | -- | | `aria-expanded="false"` | `.pf-v5-c-context-selector__toggle` | Indicates that the menu is hidden. | | `aria-expanded="true"` | `.pf-v5-c-context-selector__toggle` | Indicates that the menu is visible. | | `aria-hidden="true"` | `.pf-v5-c-context-selector__toggle-icon > *` | Hides the icon from assistive technologies. | | `disabled` | `button.pf-v5-c-context-selector__menu-item` | When the menu item uses a button element, indicates that it is unavailable and removes it from keyboard focus. | | `aria-disabled="true"` | `a.pf-v5-c-context-selector__menu-item` | When the menu item uses a link element, indicates that it is unavailable. | | `tabindex="-1"` | `a.pf-v5-c-context-selector__menu-item` | When the menu item uses a link element, removes it from keyboard focus. | ### Usage | Class | Applied to | Outcome | | -- | -- | -- | | `.pf-v5-c-context-selector` | `
` | Initiates a context selector.| | `.pf-v5-c-context-selector__toggle` | `