-
Notifications
You must be signed in to change notification settings - Fork 4
Fix a11y issues in dialog component #577
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
Open
fateeand
wants to merge
13
commits into
master
Choose a base branch
from
560-fix-ally-issues-in-dialog-component
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
af9b82c
Fix a11y issues in dialog component
fateeand 669c86f
listen to root font size
fateeand b0f258c
update dialog a11y tests
fateeand b5fbb40
address copilot feedback
fateeand 6c5dd03
Merge branch 'master' into 560-fix-ally-issues-in-dialog-component
fateeand 44e3531
restore focus check
fateeand 904eff6
add UTs
fateeand 6d4c01a
disable close button if disableClose is true
fateeand 11835f3
fix resizing
fateeand a32e6b2
remove redundant line
fateeand 1380bb2
add validator
fateeand b92e6b9
support negative
fateeand 43fd143
add isPlatformBrowser check
fateeand File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -154,12 +154,14 @@ export class CpsButtonComponent implements OnChanges { | |
| this.cvtHeight = convertSize(this.height); | ||
| if (this.cvtHeight) { | ||
| const parsedHeight = parseSize(this.cvtHeight); | ||
| const unit = parsedHeight.unit; | ||
| const size = parsedHeight.value * 0.4; | ||
| const isPx = unit === 'px'; | ||
| if (parsedHeight) { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changes of the
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added to PR description |
||
| const unit = parsedHeight.unit; | ||
| const size = parsedHeight.value * 0.4; | ||
| const isPx = unit === 'px'; | ||
|
|
||
| this.cvtFontSize = `${isPx ? Math.floor(size) : size}${unit}`; | ||
| this.cvtIconSize = `${isPx ? Math.ceil(size) : size}${unit}`; | ||
| this.cvtFontSize = `${isPx ? Math.floor(size) : size}${unit}`; | ||
| this.cvtIconSize = `${isPx ? Math.ceil(size) : size}${unit}`; | ||
| } | ||
| } | ||
| } else { | ||
| switch (this.size) { | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's out of the scope of this PR, but it'd be great if the a11y tests were grouped by the component they target.
Opened #580 for this.