-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Expose more CSS classes in JS #691
Conversation
Thanks for your interest in palantir/blueprint, @tgreenwatts! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request. |
packages/core/src/common/classes.ts
Outdated
@@ -24,6 +24,7 @@ export const FIXED = "pt-fixed"; | |||
export const FIXED_TOP = "pt-fixed-top"; | |||
export const VERTICAL = "pt-vertical"; | |||
export const ROUND = "pt-round"; | |||
export const TEXT_OVERFLOW_ELLIPSIS = "pt-text-overflow-ellipsis"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is a modifier, more like a utility class. I'll let @giladgray confirm!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would create a new section:
...
export const ROUND = "pt-round";
// text utilities
export const TEXT_OVERFLOW_ELLIPSIS = "pt-text-overflow-ellipsis";
// components
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@palantir/blueprint Should we just put every CSS API class into this file? I'm thinking we might as well (EDIT: not in this PR, in a new one).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be useful to get autocomplete for the other ones in the typography. If we're doing one, no reason not to do the others too if we're maintaining this file
packages/core/src/common/classes.ts
Outdated
@@ -24,6 +24,7 @@ export const FIXED = "pt-fixed"; | |||
export const FIXED_TOP = "pt-fixed-top"; | |||
export const VERTICAL = "pt-vertical"; | |||
export const ROUND = "pt-round"; | |||
export const TEXT_OVERFLOW_ELLIPSIS = "pt-text-overflow-ellipsis"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would create a new section:
...
export const ROUND = "pt-round";
// text utilities
export const TEXT_OVERFLOW_ELLIPSIS = "pt-text-overflow-ellipsis";
// components
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay! LGTM.
Thanks @adidahiya for merging while I was ooto! |
Fixes #0000
Checklist
Changes proposed in this pull request:
Add
pt-icon
andpt-text-overflow-ellipsis
toClasses
Reviewers should focus on:
Not sure if
pt-text-overflow-ellipsis
should be considered a "modifier" or in a new category@giladgray for review