mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:16:41 +08:00
A11Y: Add clearer focus states for date picker elements (#17890)
Affects date dropdowns, prev/next month arrows and day grid.
This commit is contained in:
parent
5043669d05
commit
0d6fd1a606
9
app/assets/stylesheets/vendor/pikaday.scss
vendored
9
app/assets/stylesheets/vendor/pikaday.scss
vendored
|
@ -116,8 +116,9 @@ $pd-font-family: Arial, sans-serif !default;
|
|||
background-size: 75% 75%;
|
||||
opacity: .5;
|
||||
|
||||
&:hover {
|
||||
&:hover, &:focus {
|
||||
opacity: 1;
|
||||
background: var(--tertiary);
|
||||
}
|
||||
|
||||
&.is-disabled {
|
||||
|
@ -249,3 +250,9 @@ $pd-font-family: Arial, sans-serif !default;
|
|||
box-shadow: none;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.pika-day {
|
||||
&:focus {
|
||||
background-color: var(--tertiary-very-low);
|
||||
}
|
||||
}
|
|
@ -180,6 +180,16 @@ div[data-tippy-root] {
|
|||
.date-time {
|
||||
color: var(--primary-medium);
|
||||
background: var(--primary-very-low);
|
||||
padding: 1em 0.5em 1em 2em;
|
||||
border: 0;
|
||||
outline: none;
|
||||
flex: 1;
|
||||
@include ellipsis;
|
||||
width: 100%;
|
||||
justify-content: flex-start;
|
||||
&:focus {
|
||||
background-color: var(--tertiary-50);
|
||||
}
|
||||
}
|
||||
|
||||
.d-icon {
|
||||
|
@ -203,16 +213,6 @@ div[data-tippy-root] {
|
|||
color: var(--primary-high);
|
||||
border-radius: 0 0 5px 0;
|
||||
}
|
||||
|
||||
.date-time {
|
||||
padding: 1em 0.5em 1em 2em;
|
||||
border: 0;
|
||||
outline: none;
|
||||
flex: 1;
|
||||
@include ellipsis;
|
||||
width: 100%;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
.inputs-panel {
|
||||
|
|
Loading…
Reference in New Issue
Block a user