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

Use blueprint class names safely #803

Closed
stropitek opened this issue Dec 6, 2024 · 2 comments · Fixed by #847
Closed

Use blueprint class names safely #803

stropitek opened this issue Dec 6, 2024 · 2 comments · Fixed by #847
Assignees

Comments

@stropitek
Copy link
Contributor

Change hardcoded usage of bp5-* in CSS to ${Classes.XXX}

Example:

When doing so, you can change also refactor to use styled components rather than passing a css prop.

@targos
Copy link
Member

targos commented Dec 6, 2024

Aren't blueprint class names generally deprecated?

@stropitek
Copy link
Contributor Author

They are not really deprecated, but it is discouraged to use them, because they can change.

In cases when we can avoid to use them we should not use them (some examples are documented in the official documentation).

We use them mostly to override the style of some markup internal to the component that would not be easy to change otherwise. By importing them we at least will have an error if the class no longer exists.

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 a pull request may close this issue.

3 participants