Skip to content

Commit

Permalink
finish theme a11y
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsnes committed Jun 24, 2024
1 parent f314717 commit f7b6403
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apps/theme/components/Color/Color.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ const Color = ({
}}
style={{ backgroundColor: color.hex }}
className={cl(classes.box, featured && classes.featured, 'ds-focus')}
aria-label={`${type} farge ${color.number}, ${color.name}`}
type='button'
></button>

{showColorMeta && (
Expand Down
1 change: 1 addition & 0 deletions apps/theme/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const Header = () => {
<Link
href='/'
className='ds-focus'
aria-label='Gå til forsiden'
>
<img
src='img/logo.svg'
Expand Down
3 changes: 2 additions & 1 deletion apps/theme/components/Previews/Components/Components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@ export const Components = () => {
<div className={classes.tableHeader}>
<div className={classes.tableAction}>
<NativeSelect
label=''
label='Velg handling'
size='sm'
hideLabel
>
<option value='blank'>Velg handling</option>
<option value='everest'>Dupliser</option>
Expand Down
1 change: 1 addition & 0 deletions apps/theme/components/TokenModal/TokenModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ export const TokenModal = ({
size='sm'
onClick={() => onButtonClick()}
onMouseEnter={() => setToolTipText('Kopier nettadresse')}
autoFocus
>
Del
<ArrowForwardIcon
Expand Down

0 comments on commit f7b6403

Please sign in to comment.