This component uses zoom to increase or decrease the user's perception of sizes, letter sizes, tables, images... everything that zoom can affect.
You will have 3 buttons, one javascript and one CSS, you need to put the CSS in your theme.
We use zoom to do this because many projects do not correctly use font size variables and it is for these cases that this component can help with the requirement to increase/decrease the font size.
- The ideal is to use the size variables and change the font size, but not all projects are prepared for this, so this can be a good temporary solution until the theme adapts.
You can also add logic for each click on the + or - to zoom in further.
Increasing/decreasing sizes may be requested in some accessible projects. Remember, the best practice to implement is to use font size variables.