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(component-library-react/paragraph): deprecate lead and small for appearance attribute #2552

Merged
merged 8 commits into from
Oct 16, 2024

Conversation

remypar5
Copy link
Contributor

@remypar5 remypar5 commented Oct 9, 2024

Deprecate the lead and small attributes in favor of the new appearance="lead|small" attribute. They are still supported and don't break any current implementation. When the appearance attribute is there, it will take priority.

Examples

<UtrechtParagraph lead>I am a lead paragraph, as I've always been</UtrechtParagraph>
<UtrechtParagraph small>I am a small paragraph, as I've always been</UtrechtParagraph>


<UtrechtParagraph lead appearance="small">
  I am a small paragraph, as the appearance attribute tells me to. I ignore the lead attribute
</UtrechtParagraph>

Closes #1800

@remypar5 remypar5 self-assigned this Oct 9, 2024
Copy link

vercel bot commented Oct 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
utrecht ❌ Failed (Inspect) Oct 16, 2024 9:04am

Copy link

codecov bot commented Oct 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.97%. Comparing base (3d0982b) to head (86a6ea5).
Report is 31 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2552      +/-   ##
==========================================
+ Coverage   93.63%   93.97%   +0.33%     
==========================================
  Files         152      154       +2     
  Lines        1257     1311      +54     
  Branches      264      294      +30     
==========================================
+ Hits         1177     1232      +55     
+ Misses         77       76       -1     
  Partials        3        3              

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

@Robbert
Copy link
Member

Robbert commented Oct 9, 2024

@remypar5 Thanks for your PR!

@remypar5 remypar5 changed the title Feat/improve paragraph feat(component-library-react): deprecate lead and small for appearance attribute Oct 9, 2024
@remypar5
Copy link
Contributor Author

remypar5 commented Oct 9, 2024

In an offline conversation, @Robbert mentioned I didn't add a changeset, yet.

In that same conversation, @matijs mentioned I should remove the unused default appearance.

Both comments have been handled

- als je niet de `enum` kan valideren, bijvoorbeeld als die uit een CMS
komt, dan is het handig dat `string` ook mag
- ik wil niet `appearance="default"` in de code samples hebben, die
bestaat niet
- handig om migration steps uit te leggen

<img width="361" alt="Screenshot 2024-10-13 at 15 22 35"
src="https://github.com/user-attachments/assets/01c6b0cc-b6fe-46dc-ba4d-a30c3cb623b3">
@remypar5 remypar5 changed the title feat(component-library-react): deprecate lead and small for appearance attribute feat(component-library-react/paragraph): deprecate lead and small for appearance attribute Oct 16, 2024
@Robbert Robbert merged commit 94840f4 into main Oct 16, 2024
13 of 16 checks passed
@Robbert Robbert deleted the feat/improve-paragraph branch October 16, 2024 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider changing paragraph lead boolean attribute to appearance="lead"
3 participants