Accessibility: Constrain popups to screen height (#110241)

* limit ButtonSelect dropdown height to screen height and scroll the overflow

* limit color picker size to screen height and scroll if constrained
This commit is contained in:
Luminessa Starlight
2025-08-28 11:43:38 -04:00
committed by GitHub
parent ad571b50e9
commit 9cf561f338
2 changed files with 4 additions and 0 deletions
@@ -95,6 +95,8 @@ const getStyles = stylesFactory((theme: GrafanaTheme2) => {
color: theme.colors.text.primary,
maxWidth: '400px',
fontSize: theme.typography.size.sm,
maxHeight: '100vh',
overflow: 'auto',
}),
};
});
@@ -127,6 +127,8 @@ const getStyles = (theme: GrafanaTheme2) => {
}),
menuWrapper: css({
zIndex: theme.zIndex.dropdown,
maxHeight: '100vh',
overflow: 'auto',
}),
};
};