Skip to content

Commit

Permalink
Add a11yLabels for border CSS Units
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Jun 7, 2021
1 parent 81a3256 commit 41acd39
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/block-editor/src/hooks/border.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,19 @@ export const CSS_UNITS = [
value: 'px',
label: isWeb ? 'px' : __( 'Pixels (px)' ),
default: '',
a11yLabel: __( 'Pixels (px)' ),
},
{
value: 'em',
label: isWeb ? 'em' : __( 'Relative to parent font size (em)' ),
default: '',
a11yLabel: __( 'Relative to parent font size (em)' ),
},
{
value: 'rem',
label: isWeb ? 'rem' : __( 'Relative to root font size (rem)' ),
default: '',
a11yLabel: __( 'Relative to root font size (rem)' ),
},
];

Expand Down

0 comments on commit 41acd39

Please sign in to comment.