-
Notifications
You must be signed in to change notification settings - Fork 185
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
fix(SubnavigationBar): combining buttons into a list [a11y] #5225
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 24882e8:
|
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #5225 +/- ##
==========================================
- Coverage 81.70% 81.66% -0.04%
==========================================
Files 283 285 +2
Lines 9476 9555 +79
Branches 3013 3050 +37
==========================================
+ Hits 7742 7803 +61
- Misses 1734 1752 +18
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
size-limit report 📦
|
👀 Docs deployedCommit 24882e8 |
packages/vkui/src/components/SubnavigationBar/SubnavigationBar.module.css
Outdated
Show resolved
Hide resolved
e2e tests |
…ponent="li"` props in `Tappable` Signed-off-by: scffs <khidey@inbox.ru>
Signed-off-by: scffs <khidey@inbox.ru>
Signed-off-by: scffs <khidey@inbox.ru>
Signed-off-by: scffs <khidey@inbox.ru>
packages/vkui/src/components/SubnavigationBar/SubnavigationBar.module.css
Outdated
Show resolved
Hide resolved
….module.css Co-authored-by: Daniil Suvorov <severecloud@gmail.com>
packages/vkui/src/components/SubnavigationBar/SubnavigationBar.module.css
Outdated
Show resolved
Hide resolved
….module.css Co-authored-by: Daniil Suvorov <severecloud@gmail.com>
packages/vkui/src/components/SubnavigationBar/SubnavigationBar.module.css
Outdated
Show resolved
Hide resolved
unset ломает верстку Co-authored-by: Daniil Suvorov <severecloud@gmail.com>
PR закрыт из-за отсутствия активности в течение последних 14 дней. Если это произошло по ошибке или изменения все ещё актуальны, откройте PR повторно. |
packages/vkui/src/components/SubnavigationButton/SubnavigationButton.module.css
Show resolved
Hide resolved
Signed-off-by: scffs <khidey@inbox.ru>
Signed-off-by: scffs <khidey@inbox.ru>
packages/vkui/src/components/SubnavigationButton/SubnavigationButton.module.css
Outdated
Show resolved
Hide resolved
packages/vkui/src/components/SubnavigationBar/SubnavigationBar.tsx
Outdated
Show resolved
Hide resolved
This reverts commit 4a5a80a.
Signed-off-by: scffs <khidey@inbox.ru>
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.
👍
|
* fix(Popover): fix incorrect words ending * Revert "doc(Popover): incorrect declension of two words" This reverts commit 8494645. * fix(SubnavigationBar): the `SubnavigationButton` components are combined into a list Signed-off-by: scffs <khidey@inbox.ru> * fix(SubnavigationBar): getting rid of the extra div Signed-off-by: scffs <khidey@inbox.ru> * Revert "Revert "doc(Popover): incorrect declension of two words"" This reverts commit 9ff5698. * fix(SubnavigationBar): using `React.Children.toArray` instead of `Component="li"` props in `Tappable` Signed-off-by: scffs <khidey@inbox.ru> * fix(SubnavigationBar): added `key` Signed-off-by: scffs <khidey@inbox.ru> * fix(SubnavigationBar): fix styles Signed-off-by: scffs <khidey@inbox.ru> * fix(SubnavigationBar): returned a comment Signed-off-by: scffs <khidey@inbox.ru> * Update packages/vkui/src/components/SubnavigationBar/SubnavigationBar.module.css Co-authored-by: Daniil Suvorov <severecloud@gmail.com> * Update packages/vkui/src/components/SubnavigationBar/SubnavigationBar.module.css Co-authored-by: Daniil Suvorov <severecloud@gmail.com> * combine into one padding * fix invalid prop value unset ломает верстку Co-authored-by: Daniil Suvorov <severecloud@gmail.com> * feat(subnavigation-bar-a11y): del global Signed-off-by: scffs <khidey@inbox.ru> * feat(subnavigation-bar-a11y): del `className` and add `TODO` Signed-off-by: scffs <khidey@inbox.ru> * Revert "feat(subnavigation-bar-a11y): del global" This reverts commit 4a5a80a. * feat(subnavigation-bar-a11y): move TODO Signed-off-by: scffs <khidey@inbox.ru> --------- Signed-off-by: scffs <khidey@inbox.ru> Co-authored-by: Daniil Suvorov <severecloud@gmail.com>
* feat(update-doc): add htmlFor / bottomId + aria-describedby (#5459) Signed-off-by: scffs <khidey@inbox.ru> Co-authored-by: Inomdzhon Mirdzhamolov <inomjon92@gmail.com> Co-authored-by: GitHub Action <actions@github.com> * fix(SubnavigationBar): combining buttons into a list [a11y] (#5225) * fix(Popover): fix incorrect words ending * Revert "doc(Popover): incorrect declension of two words" This reverts commit 8494645. * fix(SubnavigationBar): the `SubnavigationButton` components are combined into a list Signed-off-by: scffs <khidey@inbox.ru> * fix(SubnavigationBar): getting rid of the extra div Signed-off-by: scffs <khidey@inbox.ru> * Revert "Revert "doc(Popover): incorrect declension of two words"" This reverts commit 9ff5698. * fix(SubnavigationBar): using `React.Children.toArray` instead of `Component="li"` props in `Tappable` Signed-off-by: scffs <khidey@inbox.ru> * fix(SubnavigationBar): added `key` Signed-off-by: scffs <khidey@inbox.ru> * fix(SubnavigationBar): fix styles Signed-off-by: scffs <khidey@inbox.ru> * fix(SubnavigationBar): returned a comment Signed-off-by: scffs <khidey@inbox.ru> * Update packages/vkui/src/components/SubnavigationBar/SubnavigationBar.module.css Co-authored-by: Daniil Suvorov <severecloud@gmail.com> * Update packages/vkui/src/components/SubnavigationBar/SubnavigationBar.module.css Co-authored-by: Daniil Suvorov <severecloud@gmail.com> * combine into one padding * fix invalid prop value unset ломает верстку Co-authored-by: Daniil Suvorov <severecloud@gmail.com> * feat(subnavigation-bar-a11y): del global Signed-off-by: scffs <khidey@inbox.ru> * feat(subnavigation-bar-a11y): del `className` and add `TODO` Signed-off-by: scffs <khidey@inbox.ru> * Revert "feat(subnavigation-bar-a11y): del global" This reverts commit 4a5a80a. * feat(subnavigation-bar-a11y): move TODO Signed-off-by: scffs <khidey@inbox.ru> --------- Signed-off-by: scffs <khidey@inbox.ru> Co-authored-by: Daniil Suvorov <severecloud@gmail.com> --------- Signed-off-by: scffs <khidey@inbox.ru> Co-authored-by: Inomdzhon Mirdzhamolov <inomjon92@gmail.com> Co-authored-by: GitHub Action <actions@github.com>
SubnavigationBar
#5023Не уверен насчет правильности решения, в доке
SubnavigationButton
используется безSubnavigationBar
, поэтому возникает это (li
внутриdiv
)UPD
В одном из своих проектов у меня есть такой же самописный компонент, в нём такая логика, попробую позже что-то типа такого же реализовтаь. (Children#children-toarray)
UPD
Сделал в этом коммите
a11y
тесты теперь не падают, ураUPD
Немного сломались стили, теперь
margin-left
не срабатываетUPD
Как-то пофиксил стили, но скорее всего там ещё надо будет что-то менять...