trezor / trezor-suite

Trezor Suite Monorepo
https://trezor.io/trezor-suite
Other
673 stars 242 forks source link

Make icons respect accessibility enlarged fonts. #8716

Open PeKne opened 1 year ago

PeKne commented 1 year ago

The app was modified to handle accessibility font enlarging by PR #8715. But unfortunately, icons do not respect these settings. We need to make icon components scale accordingly to accessibility options.

Acceptance criteria

Implementation proposal

  1. Create a new component AccessibleIcon in @suite-native/atoms which imports all the icon components from @suite-common/icons
    1. Inside of the new icon component read ReactNative PixelRatio.getFontScale() and use it for upsizing the icons.
PeKne commented 1 year ago

follow up of #8534