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: extend props and fix spread operator for typography components #2952

Merged
merged 6 commits into from
Dec 11, 2024

Conversation

Lelith
Copy link
Collaborator

@Lelith Lelith commented Dec 10, 2024

The components

  • Caption
  • DisplayText
  • Heading
  • Paragraph
  • SectionHeading
  • Subheading

Where all having an type issue, when using the spread operator. This fixes this issue, stemming from the "as" property. It also allows now to overwrite fontColor and marginBottom to allow for easier variations of these components.

feat: improve DisplayText props and allow overwriting of font color

feat: improve Caption props and allow fontColor overwrites

feat: improve prop interfaces for typography components
@Lelith Lelith requested review from damann and a team as code owners December 10, 2024 11:58
Copy link

changeset-bot bot commented Dec 10, 2024

🦋 Changeset detected

Latest commit: ba4470d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 36 packages
Name Type
@contentful/f36-typography Minor
@contentful/f36-accordion Minor
@contentful/f36-asset Minor
@contentful/f36-autocomplete Minor
@contentful/f36-badge Minor
@contentful/f36-button Minor
@contentful/f36-card Minor
@contentful/f36-collapse Minor
@contentful/f36-copybutton Minor
@contentful/f36-core Minor
@contentful/f36-datetime Minor
@contentful/f36-datepicker Minor
@contentful/f36-drag-handle Minor
@contentful/f36-entity-list Minor
@contentful/f36-empty-state Minor
@contentful/f36-forms Minor
@contentful/f36-icon Minor
@contentful/f36-header Minor
@contentful/f36-list Minor
@contentful/f36-menu Minor
@contentful/f36-modal Minor
@contentful/f36-navbar Minor
@contentful/f36-note Minor
@contentful/f36-notification Minor
@contentful/f36-pagination Minor
@contentful/f36-pill Minor
@contentful/f36-popover Minor
@contentful/f36-skeleton Minor
@contentful/f36-spinner Minor
@contentful/f36-table Minor
@contentful/f36-tabs Minor
@contentful/f36-text-link Minor
@contentful/f36-tooltip Minor
@contentful/f36-components Minor
@contentful/f36-image Minor
@contentful/f36-avatar Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Dec 10, 2024

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

Name Status Preview Updated (UTC)
forma-36 ✅ Ready (Inspect) Visit Preview Dec 11, 2024 9:17am

Copy link

github-actions bot commented Dec 10, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
CommonJS 112.19 KB (+0.15% 🔺) 2.3 s (+0.15% 🔺) 294 ms (+2.21% 🔺) 2.6 s
Module 110.85 KB (+0.22% 🔺) 2.3 s (+0.22% 🔺) 347 ms (+2.65% 🔺) 2.6 s

@Lelith Lelith merged commit 9f032ee into main Dec 11, 2024
13 checks passed
@Lelith Lelith deleted the feat/extend_props_for_heading_components_F36-1589 branch December 11, 2024 10:27
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.

🐛 Bug - Text component should not take "color" prop
2 participants