Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WRQ-11247: Added fontScale prop for large text mode scale values #1574

Draft
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

mmyelyn
Copy link
Contributor

@mmyelyn mmyelyn commented Mar 4, 2024

Checklist

  • I have read and understand the contribution guide
  • A CHANGELOG entry is included
  • At least one test case is included for this feature or bug fix
  • Documentation was added or is not needed
  • This is an API breaking change

Issue Resolved / Feature Added

There is a requirement for large text mode for a11y.
I have modified the app (including sampler) to review the screen when large text is applied.

Resolution

Added the fontScale prop to ThemeDecorator so that i can adjust the scale in the app.

Additional Considerations

Links

WRQ-11247

Comments

Enact-DCO-1.0-Signed-off-by: Hyelyn Kim ([email protected])

@mmyelyn mmyelyn marked this pull request as draft March 4, 2024 07:36
Copy link

codecov bot commented Mar 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.44%. Comparing base (63631d9) to head (e60fd0c).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1574   +/-   ##
========================================
  Coverage    81.44%   81.44%           
========================================
  Files          148      148           
  Lines         6629     6629           
  Branches      1955     1955           
========================================
  Hits          5399     5399           
  Misses         936      936           
  Partials       294      294           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Enact-DCO-1.0-Signed-off-by: Hyelyn Kim ([email protected])
samples/sampler/.storybook/preview.js Outdated Show resolved Hide resolved
ThemeDecorator/ThemeDecorator.js Outdated Show resolved Hide resolved
ThemeDecorator/ThemeDecorator.js Show resolved Hide resolved
ThemeDecorator/ThemeDecorator.js Outdated Show resolved Hide resolved
@juwonjeong
Copy link
Contributor

Please check the console error to fix the prop bleeding in sampler.

- Delete fontScale from ThemeDecorator's config
It only needs to be passed as a prop, not as a ThemeDecorator config

Enact-DCO-1.0-Signed-off-by: Hyelyn Kim ([email protected])
@mmyelyn
Copy link
Contributor Author

mmyelyn commented Mar 13, 2024

Please check the console error to fix the prop bleeding in sampler.

Fixed.

Copy link
Contributor

@juwonjeong juwonjeong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants