-
Notifications
You must be signed in to change notification settings - Fork 28
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
feat: add @role for elements #190
Draft
AcesAndEights
wants to merge
46
commits into
qiwi:master
Choose a base branch
from
AcesAndEights:roles
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.
Draft
Changes from 26 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
1046aa5
[NF] Добавил @role к элементам p.1
fe03732
[NF] @role for elements Accordion, Content, Breadcrumbs
bf73d5e
[NF] @role for core elements Block, Grid, Input and rf Button, Popup
79327d6
Merge branch 'master' of https://github.com/qiwi/pijma into roles
3618d69
[NF] option field parameters for checkbox, switch, radio
3a2a700
[RF] Change simple modal to alertdialog @role
abe1343
[NF] @role for mask input
f54e27e
[RF] change button labels (brand,simple => labelledby)
4879c55
merge with upstream
e08308f
fix after merge
2d6c8f7
Merge branch 'master' into roles
AcesAndEights 3351367
Merge branch 'master' of https://github.com/qiwi/pijma into roles
3da6536
add @role for core/Icon
3f42304
add @role for core/image
8b61e61
change @role for desktop/block-accordion
2b6c163
change @role for mobile/block-accordion
3b57dd0
add @role for desktop/breadcrumbs
00451dd
add @role for mobile/breadcrumbs
759f77c
refactor @role for desktop/button
c7c952f
refactor @role for mobile/button
f8612f9
add @role for desktop/oops
63f53db
add @role for mobile/oops
5be33d7
add @role for mobile/text
4575dc2
add @role for desktop/text
0d5c37a
rf @role for desktop/button
0518431
rf @role for mobile/button
9b1d727
rf @role for desktop/checkboxfield
a438072
rf @role for mobile/checkboxfield
07e0ae6
rf @role for core/basicinput and desktop+mobile textfield/passfield
41fa93b
add @alt for icon
5e4d7b6
rf @alt for icon + add alt to svg interface
5454fe7
rf @role for desktop/breadcrumbs
fd40714
rf @role for mobile/breadcrumbs
5d25d0d
delete @role for navlink mobile and desktop
c56b79e
delete @role for button mobile and desktop
cb5d880
delete @role for all links mobile and desktop
a33b942
fix checkbox field
373a873
rf @role for headermenu
2cc765e
delete @role for textfield
ecf1fa6
review fixes
9232b03
Merge branch 'master' into roles
AcesAndEights b17e486
title for desktop/blocklink
112d15b
title for mobile/blocklink
2a9986b
turn label to string
d074981
Merge branch 'master' of https://github.com/qiwi/pijma into roles
2dc4df0
Merge remote-tracking branch 'origin/roles' into roles
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ export const Grid: FC<GridProps> = ({gutter = 20, columns = 12, layout = columns | |
const rowBlocksCount: number = columns / layoutSum * layoutLength | ||
|
||
return ( | ||
<Flex wrap="wrap"> | ||
<Flex wrap="wrap" role="section" aria-label="grid"> | ||
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. есть роль grid и опять label один для всех и не понятно зачем он тут |
||
{Children.map(elements, (child: ReactNode, index: number) => ( | ||
<FlexItem | ||
key={index} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ const BlockAccordionIndent: { | |
|
||
export const BlockAccordion: FunctionComponent<BlockAccordionProps<BlockAccordionItemModel>> = ({items, indent = 'm', tabIndex = 0, opened, onChange}) => ( | ||
<AccordionControl<BlockAccordionItemModel> | ||
|
||
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. лишняя строчка |
||
items={items} | ||
opened={opened} | ||
onChange={onChange} | ||
|
@@ -35,6 +36,8 @@ export const BlockAccordion: FunctionComponent<BlockAccordionProps<BlockAccordio | |
{renderProps.items.map((item, index) => ( | ||
<Card | ||
key={index} | ||
role="region" | ||
aria-label={typeof item.title === 'string' ? item.title : undefined} | ||
s={ | ||
item.hovered || item.focused | ||
? '0 0 16px 0 rgba(0, 0, 0, 0.12)' | ||
|
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
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
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.
Атрибут aria-label создаёт текстовую метку текущего элемента в случае отсутствия видимого текста описания элемента.
зачем тут простоblock
всегда?