mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-18 12:57:28 -06:00
[bugfix] Fix a couple accessibility issues with :focus elements (#3979)
* [bugfix/frontend] Fix accessibility/focus issues in settings + web ui * fix little error * tweaks
This commit is contained in:
parent
365b575341
commit
19cfa8d126
24 changed files with 405 additions and 152 deletions
|
|
@ -567,40 +567,34 @@ form {
|
|||
}
|
||||
|
||||
.form-field.file {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
grid-template-rows: auto auto;
|
||||
grid-template-areas:
|
||||
"label-label label-label"
|
||||
"label-button file-info"
|
||||
;
|
||||
|
||||
.label-label {
|
||||
grid-area: label-label;
|
||||
}
|
||||
display: flex;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
.label-button {
|
||||
grid-area: label-button;
|
||||
.label-wrapper {
|
||||
width: fit-content;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
&:focus-visible {
|
||||
outline: 0.15rem dashed $button-focus-border;
|
||||
outline-offset: -0.15rem;
|
||||
}
|
||||
}
|
||||
|
||||
.form-info {
|
||||
grid-area: file-info;
|
||||
position: absolute;
|
||||
font-weight: initial;
|
||||
align-self: end;
|
||||
margin-left: 4.25rem;
|
||||
margin-bottom: 0.3rem;
|
||||
|
||||
.error {
|
||||
padding: 0.1rem;
|
||||
line-height: 1.4rem;
|
||||
line-height: 1.4rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
span.form-info {
|
||||
flex: 1 1 auto;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
padding: 0.3rem 0;
|
||||
font-weight: initial;
|
||||
}
|
||||
|
||||
.checkbox-list {
|
||||
.header, .entry {
|
||||
display: grid;
|
||||
|
|
@ -1337,6 +1331,9 @@ button.tab-button {
|
|||
.pseudolink {
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
&:focus-visible {
|
||||
outline: 0.15rem dotted $button-focus-border;
|
||||
}
|
||||
}
|
||||
|
||||
.info-list {
|
||||
|
|
@ -1738,7 +1735,6 @@ button.tab-button {
|
|||
|
||||
.mutation-button {
|
||||
width: 100%;
|
||||
overflow-x: hidden;
|
||||
|
||||
button {
|
||||
font-size: 1rem;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue