M
M
martial beatman2020-10-05 10:54:23
Angular
martial beatman, 2020-10-05 10:54:23

Accessibility in Angular. What are the solutions?

Are there ready-made solutions in Angular for the visually impaired? For example, by clicking on the button, settings appear: increase the font size, invert, and so on.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
acwartz, 2020-10-05
@acwartz

This is all achieved in the css framework that you use, write yourself or have something out of the box (not always). Usually right-to-left comes out of the box and no more.
Here is an example , in the app-config code of the font increase component:

....
    decrementScale() {
        this.scale--;
        document.documentElement.style.fontSize = this.scale + 'px';
    }

    incrementScale() {
        this.scale++;
        document.documentElement.style.fontSize = this.scale + 'px';
    }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question