diff options
| author | 2025-04-09 14:14:20 +0200 | |
|---|---|---|
| committer | 2025-04-09 14:14:20 +0200 | |
| commit | 19cfa8d126a2ff54298150529e58e5e4f5495f09 (patch) | |
| tree | 3a569e6c456cc7ea13f16f04c5cd81301b71e5f2 /web/source/settings/style.css | |
| parent | [feature] add TOTP two-factor authentication (2FA) (#3960) (diff) | |
| download | gotosocial-19cfa8d126a2ff54298150529e58e5e4f5495f09.tar.xz | |
[bugfix] Fix a couple accessibility issues with `:focus` elements (#3979)
* [bugfix/frontend] Fix accessibility/focus issues in settings + web ui
* fix little error
* tweaks
Diffstat (limited to 'web/source/settings/style.css')
| -rw-r--r-- | web/source/settings/style.css | 46 |
1 files changed, 21 insertions, 25 deletions
diff --git a/web/source/settings/style.css b/web/source/settings/style.css index 2afb44c42..a87d4813c 100644 --- a/web/source/settings/style.css +++ b/web/source/settings/style.css @@ -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; |
