Skip to content

Removes dynamic dimensions for V2 Skeletons in favor of classnames#4263

Merged
PeerRich merged 5 commits intomainfrom
ui/deprecate-skeletons-dynamic-dimensions
Sep 9, 2022
Merged

Removes dynamic dimensions for V2 Skeletons in favor of classnames#4263
PeerRich merged 5 commits intomainfrom
ui/deprecate-skeletons-dynamic-dimensions

Conversation

@zomars
Copy link
Copy Markdown
Contributor

@zomars zomars commented Sep 7, 2022

What does this PR do?

  • Adds deprecation notices to V1 Skeletons
  • Removes width and height props from V2 Skeletons
  • Migrates V2 skeletons to use classnames

For more context on this decision: https://tailwindcss.com/docs/content-configuration#dynamic-class-names

Type of change

  • Chore (refactoring code, technical debt, workflow improvements)

@vercel
Copy link
Copy Markdown

vercel bot commented Sep 7, 2022

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

Name Status Preview Updated
cal ✅ Ready (Inspect) Visit Preview Sep 9, 2022 at 8:20AM (UTC)

@zomars zomars changed the title WIP Removes dynamic dimensions for V2 Skeletons in favor of classnames Sep 8, 2022
@zomars zomars requested review from a team, hariombalhara and sean-brydon September 8, 2022 22:17
@zomars zomars marked this pull request as ready for review September 8, 2022 22:17
Copy link
Copy Markdown
Contributor Author

@zomars zomars left a comment

Choose a reason for hiding this comment

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

Ready for review

Motion Capture Dance GIF by Ankita

Copy link
Copy Markdown
Member

@sean-brydon sean-brydon left a comment

Choose a reason for hiding this comment

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

LGTM - whoever wrote them dynamic classNames should be shot 😅 (It was me)

width: "2" | "3" | "4" | "5" | "6" | "8" | "12";
height: "2" | "3" | "4" | "5" | "6" | "8" | "12";
// Limit this cause we don't use avatars bigger than this
/** @deprecated @see https://tailwindcss.com/docs/content-configuration#dynamic-class-names */
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why show deprecated when we just replace it everywhere?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not worth the effort now as we will remove it post v2

Copy link
Copy Markdown
Member

@PeerRich PeerRich left a comment

Choose a reason for hiding this comment

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

does it change anything visually? or just a refactor cleanup?

@PeerRich PeerRich enabled auto-merge (squash) September 9, 2022 08:13
@PeerRich PeerRich merged commit 99f11dc into main Sep 9, 2022
@PeerRich PeerRich deleted the ui/deprecate-skeletons-dynamic-dimensions branch September 9, 2022 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants