Skip to content
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(sbb-tag, sbb-tag-group): implement native form support #3379

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MarioCastigliano
Copy link
Contributor

Preflight Checklist

Issue

This PR Closes #3157

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

See Review Guidelines for more information what is checked during review process.

Changes

Changes in this pull request:

  • tag-group now supports form support, and operates like a checkbox-group

Browsers

I tested the build on the following browsers:

  • Firefox Desktop
  • Chrome Desktop
  • Edge Desktop
  • Safari Desktop
  • Chrome Mobile
  • Safari Mobile

Screen readers

I tested the build on the following browsers:

  • JAWS Firefox Desktop
  • JAWS Chrome Desktop
  • NVDA Firefox Desktop
  • NVDA Chrome Desktop
  • VoiceOver Safari Desktop
  • VoiceOver Chrome Desktop
  • VoiceOver Safari Mobile
  • Android Accessibility Suite Chrome Mobile

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

Does this introduce a breaking change?

  • Yes
  • No

Other information

@github-actions github-actions bot requested a deployment to pr3379 January 31, 2025 15:50 In progress
@github-actions github-actions bot temporarily deployed to pr3379-diff January 31, 2025 15:50 Inactive
@MarioCastigliano MarioCastigliano marked this pull request as ready for review February 3, 2025 08:47
@MarioCastigliano MarioCastigliano self-assigned this Feb 3, 2025
@github-actions github-actions bot added the pr: peer review required A peer review is required for this pull request label Feb 3, 2025
@github-actions github-actions bot requested a deployment to pr3379 February 3, 2025 09:10 In progress
@github-actions github-actions bot requested a deployment to pr3379-diff February 3, 2025 09:10 In progress
Copy link
Contributor

@DavideMininni-Fincons DavideMininni-Fincons left a comment

Choose a reason for hiding this comment

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

Good work, some comment added

@@ -42,7 +42,7 @@ $active: ':active, [data-active]';
}

// Active state
:host([checked]) {
:host([aria-pressed='true']) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Are there issues to have reflect=true in the checked property?

);
});

it('updates form in exlusive mode', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
it('updates form in exlusive mode', async () => {
it('updates form in exclusive mode', async () => {

@@ -105,6 +105,7 @@ that communicates the collective meaning of all `sbb-tag`s.

| Name | Attribute | Privacy | Type | Default | Description |
| ------------------------ | -------------------------- | ------- | -------------------------------------- | ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `disabled` | `disabled` | public | `boolean` | `false` | Whether the component is disabled. |
Copy link
Contributor

Choose a reason for hiding this comment

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

I will add a note in style or state saying that the component can be disabled

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.

story(sbb-tag-group): implement native form support
2 participants