mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 20:54:22 -06:00
A11y: Make tabs in query history + inspector accessible in Explore (#53773)
* refactor: make tabs accesible * refactor: make content after slider accessible * refactor: add a comment with todo
This commit is contained in:
parent
4a9137ac40
commit
f5f93ccd96
@ -47,6 +47,8 @@ export const RangeSlider: FunctionComponent<RangeSliderProps> = ({
|
||||
onAfterChange={onAfterChange}
|
||||
vertical={!isHorizontal}
|
||||
reverse={reverse}
|
||||
// TODO: The following is a temporary work around for making content after the slider accessible and it will be removed when fixing the slider in public/app/features/explore/RichHistory/RichHistoryQueriesTab.tsx.
|
||||
tabIndex={[0, 1]}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
@ -42,7 +42,8 @@ export const Tab = React.forwardRef<HTMLAnchorElement, TabProps>(
|
||||
return (
|
||||
<div className={tabsStyles.item}>
|
||||
<a
|
||||
href={href}
|
||||
// in case there is no href '#' is set in order to maintain a11y
|
||||
href={href ? href : '#'}
|
||||
className={linkClass}
|
||||
{...otherProps}
|
||||
onClick={onChangeTab}
|
||||
|
Loading…
Reference in New Issue
Block a user