Skip to content

Commit

Permalink
fix(accessibility): [ACCESSIBILITY 11.4] Common Elements - Font size …
Browse files Browse the repository at this point in the history
…scaling issues #363 from eea/accessibility-114-scaling-font-size-issues
  • Loading branch information
ichim-david authored Jul 12, 2023
2 parents 745efab + 6aced82 commit 00dba6e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions theme/themes/eea/globals/site.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

@import '@eeacms/volto-eea-design-system/../theme/themes/eea/globals/utilities';

html, body {
font-size: @baseFontSize;
}

// Accessibility outline on focus-visible for every component
*:focus-visible {
outline: @focusVisibleOutline;
Expand Down
3 changes: 3 additions & 0 deletions theme/themes/eea/globals/site.variables
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
/* The size of page text */
@fontSize : 16px;

/* Overrides html & body default font-size to enable scaling from browser settings */
@baseFontSize: 1rem;


/*-------------------
Border Radius
Expand Down

0 comments on commit 00dba6e

Please sign in to comment.