GrafanaUI: Show focus on selected date of the date picker (#93181)

pull/93214/head^2
Joao Silva 9 months ago committed by GitHub
parent 56f361198c
commit 15bf1348ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      packages/grafana-ui/src/components/DateTimePickers/TimeRangePicker/CalendarBody.tsx
  2. 2
      packages/grafana-ui/src/themes/GlobalStyles/elements.ts

@ -99,7 +99,7 @@ export const getBodyStyles = (theme: GrafanaTheme2) => {
fontSize: theme.typography.size.md,
border: '1px solid transparent',
'&:hover': {
'&:hover, &:focus': {
position: 'relative',
},
@ -157,7 +157,6 @@ export const getBodyStyles = (theme: GrafanaTheme2) => {
color: theme.colors.primary.contrastText,
fontWeight: theme.typography.fontWeightMedium,
background: theme.colors.primary.main,
boxShadow: 'none',
border: '0px',
},

@ -275,7 +275,7 @@ export function getElementStyles(theme: GrafanaTheme2) {
// 2. Correct font properties not being inherited.
// 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
'button, input, optgroup, select, textarea': {
borderRadius: theme.shape.radius.default,
borderRadius: 0,
color: 'inherit',
font: 'inherit',
lineHeight: 'inherit',

Loading…
Cancel
Save