Table panel: Use link elements instead of div elements with on click events to aid with keyboard accessibility (#59393)

* TablePanel: fix image of image cell overflowing table cell when a data link is added
This commit is contained in:
Oscar Kilhed
2023-01-24 12:42:40 +01:00
committed by GitHub
parent 81c35560a8
commit 6c9d9a2db5
5 changed files with 55 additions and 15 deletions

View File

@ -311,3 +311,18 @@ export const clearButtonStyles = (theme: GrafanaTheme2) => {
padding: 0;
`;
};
export const clearLinkButtonStyles = (theme: GrafanaTheme2) => {
return css`
background: transparent;
border: none;
padding: 0;
font-family: inherit;
color: inherit;
height: 100%;
&:hover {
background: transparent;
color: inherit;
}
`;
};