Skip to content

Commit

Permalink
TCR-50: resolve a11y issues (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
SKarolFolio authored Jan 21, 2025
1 parent 1d4a9ac commit ebafe7b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -191,4 +191,13 @@ h6 {
gap: 8px;
align-items: center;
}

.invisible-text {
position: absolute;
left: -10000px;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
}
}
2 changes: 1 addition & 1 deletion src/components/Dropdown/Dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
&-group {
&-label {
margin-bottom: 0.5rem;
font-size: 0.75rem;
font-size: 0.855rem;
font-weight: 700;
color: rgba(0, 0, 0, 0.62);
}
Expand Down
10 changes: 10 additions & 0 deletions src/components/SearchResultEntry/SearchResultEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ type SearchResultEntry = {

const instancesListHeader: Row = {
selectCtl: {
label: (
<div className="invisible-text">
<FormattedMessage id="ld.aria.table.selectRow" />
</div>
),
position: 0,
},
title: {
Expand All @@ -51,6 +56,11 @@ const instancesListHeader: Row = {
position: 5,
},
editCtl: {
label: (
<div className="invisible-text">
<FormattedMessage id="ld.editInstance" />
</div>
),
position: 6,
},
};
Expand Down

0 comments on commit ebafe7b

Please sign in to comment.