mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Configuration page: Fix dropdown menus keyboard a11y (#56986)
* Made dropdown menu keyboard accessible * ul menu and left align
This commit is contained in:
parent
2e16d5499e
commit
2ccbb4d3a3
@ -23,10 +23,15 @@ const SelectNav = ({ children, customCss }: { children: NavModelItem[]; customCs
|
||||
return (
|
||||
<div className={`gf-form-select-wrapper width-20 ${customCss}`}>
|
||||
<div className="dropdown">
|
||||
<div className="gf-form-input dropdown-toggle" data-toggle="dropdown">
|
||||
<button
|
||||
type="button"
|
||||
className="gf-form-input dropdown-toggle"
|
||||
data-toggle="dropdown"
|
||||
style={{ textAlign: 'left' }}
|
||||
>
|
||||
{defaultSelectedItem?.text}
|
||||
</div>
|
||||
<ul className="dropdown-menu dropdown-menu--menu">
|
||||
</button>
|
||||
<ul role="menu" className="dropdown-menu dropdown-menu--menu">
|
||||
{children.map((navItem: NavModelItem) => {
|
||||
if (navItem.hideFromTabs) {
|
||||
// TODO: Rename hideFromTabs => hideFromNav
|
||||
|
Loading…
Reference in New Issue
Block a user