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

misc(Skeleton): migrate to remove unnecessary attribute #1854

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

ansmonjol
Copy link
Collaborator

Context

Skeleton api has changed recently.
It has 2 versions

  • The one with attributes to define width, height, margins
  • The one using className to define those values

Also, by default all variant text has a height of 12px.

Description

This PR is an enhancement to embrace the new API, and simply remove the height={12} on variant="text" invocations.
There will be other updated to fully migrate all API to use className tailwind notation but I prefer to go step by step and don't have time right now to finish.
I've let the codemod script in the codebase to help future usages and share knowledge.

@ansmonjol ansmonjol merged commit 559424f into main Nov 8, 2024
14 checks passed
@ansmonjol ansmonjol deleted the skeleton-remove-extra-height branch November 8, 2024 09:11
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