-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add font size logic to ContrastChecker component; Add test cases; (#8059
) Contrast checker included logic to differentiate between large and small text. The logic is dependent on font size, so it makes sense to have for normal cases logic that uses the font size inside ContrastChecker checker. But because the logic is not just dependent on font size (e.g: if the text is bold for the same font size the contrast may be valid) we allow users of the component to still rely on isLargeText prop and decide by them selfs if the text they contain is considered large or not.
- Loading branch information
1 parent
767ef1e
commit 201be4b
Showing
4 changed files
with
154 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters