Skip to content

[core] Refactor: "style hooks" to "state attributes" #1940

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

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

romgrk
Copy link
Contributor

@romgrk romgrk commented May 19, 2025

Get rid of the "style hooks" terminology which is unclear.

Now that I read the PR, I feel like it could be simply stateMapping instead of stateAttributesMapping. The "attributes" token would be missing, but it would be less verbose and "state mapping" is clear enough as a concept, imo. Opinions welcome, I could go with either.

romgrk added 2 commits May 19, 2025 07:12
@romgrk romgrk added core DO NOT USE. This label has been deprecated and replaced by `all components` and `internal`. enhancement This is not a bug, nor a new feature labels May 19, 2025
@romgrk romgrk marked this pull request as draft May 19, 2025 11:21
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label May 20, 2025
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label May 20, 2025
Copy link

netlify bot commented May 20, 2025

Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit dd91e76
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/682cfb4a195f0a0008e676f6
😎 Deploy Preview https://deploy-preview-1940--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

romgrk added 3 commits May 20, 2025 16:43
Copy link

pkg-pr-new bot commented May 20, 2025

Open in StackBlitz

npm i https://pkg.pr.new/@base-ui-components/react@1940

commit: dd91e76

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label May 21, 2025
@michaldudak
Copy link
Member

@colmtuite, are you OK with changing this term?

@colmtuite
Copy link
Contributor

@michaldudak @romgrk Sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core DO NOT USE. This label has been deprecated and replaced by `all components` and `internal`. enhancement This is not a bug, nor a new feature PR: out-of-date The pull request has merge conflicts and can't be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants