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

fix(sbb-form-field): remove label property and attribute #2523

Merged
merged 3 commits into from
Mar 27, 2024

Conversation

jeripeierSBB
Copy link
Contributor

In order to support SSR we have to remove the label property. As replacement the <label> tag should be used.

BREAKING CHANGE: label property and attribute of <sbb-form-field> was removed. Use <label> tag inside <sbb-form-field> to provide the label information. E.g. <sbb-form-field label="Example">...</sbb-form-field> becomes <sbb-form-field><label>Example</label>...</sbb-form-field>

@github-actions github-actions bot added the pr: peer review required A peer review is required for this pull request label Mar 26, 2024
@github-actions github-actions bot temporarily deployed to preview-pr2523 March 26, 2024 09:22 Inactive
@codecov-commenter
Copy link

codecov-commenter commented Mar 26, 2024

Codecov Report

Attention: Patch coverage is 95.23810% with 1 lines in your changes are missing coverage. Please review.

❗ No coverage uploaded for pull request base (main@433c57c). Click here to learn what that means.

Files Patch % Lines
src/components/form-field/form-field/form-field.ts 95.23% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2523   +/-   ##
=======================================
  Coverage        ?   93.19%           
=======================================
  Files           ?      301           
  Lines           ?    24921           
  Branches        ?     2029           
=======================================
  Hits            ?    23225           
  Misses          ?     1667           
  Partials        ?       29           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@TomMenga TomMenga left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@TomMenga TomMenga added pr: peer review approved Pull request has been approved by a peer review and removed pr: peer review required A peer review is required for this pull request labels Mar 27, 2024
In order to support SSR we have to remove the label property. As replacement the `<label>`
tag should be used.

BREAKING CHANGE: `label` property and attribute of `<sbb-form-field>`
was removed. Use `<label>` tag inside `<sbb-form-field>` to provide the label information.
Copy link
Contributor

@kyubisation kyubisation left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@github-actions github-actions bot added the pr: lead review approved Pull request has been approved by a lead review label Mar 27, 2024
@jeripeierSBB jeripeierSBB merged commit 602064c into main Mar 27, 2024
21 checks passed
@jeripeierSBB jeripeierSBB deleted the form-field-label-prop-removal branch March 27, 2024 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: lead review approved Pull request has been approved by a lead review pr: peer review approved Pull request has been approved by a peer review preview-available
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants