Skip to content

UIK 5640/radio cards - #3101

Open
slizhevskyv-semrush wants to merge 7 commits into
UIK-5351/add-more-variables-to-themefrom
UIK-5640/radio-cards
Open

UIK 5640/radio cards#3101
slizhevskyv-semrush wants to merge 7 commits into
UIK-5351/add-more-variables-to-themefrom
UIK-5640/radio-cards

Conversation

@slizhevskyv-semrush

Copy link
Copy Markdown
Contributor

Motivation and Context

Added new RadioCards component.

How has this been tested?

I've added unit test.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue).
  • New feature (non-breaking change which adds functionality).
  • Breaking change (fix or feature that would cause existing functionality to not work as expected).
  • Nice improve.

Checklist:

  • I have updated the documentation accordingly.
  • I have added new tests on added of fixed functionality.

| `Tab` | When focus moves to the `RadioCards`, it moves to the active `RadioCards.Item`. |
| `Left Arrow` , `Right Arrow` | Set `checked` value to the next/previous button in the group. If focus is on the last/first button, moves focus to the first/last button respectively. |

See detailed information about the keyboard support for clickable elements in the [Keyboard control guide](/core-principles/a11y/a11y-keyboard#any-other-controls-filtertrigger-pills-tabline-etc).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚫 [vale] <DevDocs.Names> reported by reviewdog 🐶
Use 'A11y' or 'A11Y' instead of 'a11y'.

Suggested change
See detailed information about the keyboard support for clickable elements in the [Keyboard control guide](/core-principles/a11y/a11y-keyboard#any-other-controls-filtertrigger-pills-tabline-etc).
See detailed information about the keyboard support for clickable elements in the [Keyboard control guide](/core-principles/A11y/a11y-keyboard#any-other-controls-filtertrigger-pills-tabline-etc).
Suggested change
See detailed information about the keyboard support for clickable elements in the [Keyboard control guide](/core-principles/a11y/a11y-keyboard#any-other-controls-filtertrigger-pills-tabline-etc).
See detailed information about the keyboard support for clickable elements in the [Keyboard control guide](/core-principles/A11Y/a11y-keyboard#any-other-controls-filtertrigger-pills-tabline-etc).

---
title: Radio Cards
fileSource: radio-cards
tabs: Design('radio-cards'), A11y('radio-cards-a11y'), API('radio-cards-api'), Examples('radio-cards-code'), Changelog('radio-cards-changelog')

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚫 [vale] <DevDocs.Names> reported by reviewdog 🐶
Use 'A11y' or 'A11Y' instead of 'a11y'.

Suggested change
tabs: Design('radio-cards'), A11y('radio-cards-a11y'), API('radio-cards-api'), Examples('radio-cards-code'), Changelog('radio-cards-changelog')
tabs: Design('radio-cards'), A11y('radio-cards-A11y'), API('radio-cards-api'), Examples('radio-cards-code'), Changelog('radio-cards-changelog')
Suggested change
tabs: Design('radio-cards'), A11y('radio-cards-a11y'), API('radio-cards-api'), Examples('radio-cards-code'), Changelog('radio-cards-changelog')
tabs: Design('radio-cards'), A11y('radio-cards-A11Y'), API('radio-cards-api'), Examples('radio-cards-code'), Changelog('radio-cards-changelog')

---
title: Radio Cards
fileSource: radio-cards
tabs: Design('radio-cards'), A11y('radio-cards-a11y'), API('radio-cards-api'), Examples('radio-cards-code'), Changelog('radio-cards-changelog')

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚫 [vale] <DevDocs.Names> reported by reviewdog 🐶
Use 'A11y' or 'A11Y' instead of 'a11y'.

Suggested change
tabs: Design('radio-cards'), A11y('radio-cards-a11y'), API('radio-cards-api'), Examples('radio-cards-code'), Changelog('radio-cards-changelog')
tabs: Design('radio-cards'), A11y('radio-cards-A11y'), API('radio-cards-api'), Examples('radio-cards-code'), Changelog('radio-cards-changelog')
Suggested change
tabs: Design('radio-cards'), A11y('radio-cards-a11y'), API('radio-cards-api'), Examples('radio-cards-code'), Changelog('radio-cards-changelog')
tabs: Design('radio-cards'), A11y('radio-cards-A11Y'), API('radio-cards-api'), Examples('radio-cards-code'), Changelog('radio-cards-changelog')

---
title: Radio Cards
fileSource: radio-cards
tabs: Design('radio-cards'), A11y('radio-cards-a11y'), API('radio-cards-api'), Examples('radio-cards-code'), Changelog('radio-cards-changelog')

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚫 [vale] <DevDocs.Names> reported by reviewdog 🐶
Use 'A11y' or 'A11Y' instead of 'a11y'.

Suggested change
tabs: Design('radio-cards'), A11y('radio-cards-a11y'), API('radio-cards-api'), Examples('radio-cards-code'), Changelog('radio-cards-changelog')
tabs: Design('radio-cards'), A11y('radio-cards-A11y'), API('radio-cards-api'), Examples('radio-cards-code'), Changelog('radio-cards-changelog')
Suggested change
tabs: Design('radio-cards'), A11y('radio-cards-a11y'), API('radio-cards-api'), Examples('radio-cards-code'), Changelog('radio-cards-changelog')
tabs: Design('radio-cards'), A11y('radio-cards-A11Y'), API('radio-cards-api'), Examples('radio-cards-code'), Changelog('radio-cards-changelog')

---
title: Radio Cards
fileSource: radio-cards
tabs: Design('radio-cards'), A11y('radio-cards-a11y'), API('radio-cards-api'), Examples('radio-cards-code'), Changelog('radio-cards-changelog')

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚫 [vale] <DevDocs.Names> reported by reviewdog 🐶
Use 'A11y' or 'A11Y' instead of 'a11y'.

Suggested change
tabs: Design('radio-cards'), A11y('radio-cards-a11y'), API('radio-cards-api'), Examples('radio-cards-code'), Changelog('radio-cards-changelog')
tabs: Design('radio-cards'), A11y('radio-cards-A11y'), API('radio-cards-api'), Examples('radio-cards-code'), Changelog('radio-cards-changelog')
Suggested change
tabs: Design('radio-cards'), A11y('radio-cards-a11y'), API('radio-cards-api'), Examples('radio-cards-code'), Changelog('radio-cards-changelog')
tabs: Design('radio-cards'), A11y('radio-cards-A11Y'), API('radio-cards-api'), Examples('radio-cards-code'), Changelog('radio-cards-changelog')

Comment thread semcore/radio-cards/src/RadioCards.tsx Outdated
aria-disabled={disabled}
aria-checked={checked}
>
{advancedMode

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

do we really need advanced mode here?)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

idk, since it's called as radio-cards I cannot guarantee that left or right addon will be filled with the correct content. That is why I decided to expand the component to advanced mode. idk :) we could discuss it deeper :)

},
"dependencies": {
"@semcore/typography": "^17.2.1"
},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You should add peerDeps. Core and base-components, I think

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants