-
Notifications
You must be signed in to change notification settings - Fork 76
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
refactor(tree-item): limit padding-y CSS var to top/bottom spacing, remove end indentation #3237
refactor(tree-item): limit padding-y CSS var to top/bottom spacing, remove end indentation #3237
Conversation
@@ -174,4 +174,26 @@ describe("calcite-tree-item", () => { | |||
ancestors.forEach(async (node) => expect(await node.getProperty("indeterminate")).toBe(true)); | |||
}); | |||
}); | |||
|
|||
describe("CSS Custom Properties for style overrides", () => { |
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.
This is great. I think we could add a test util for this (outside of this PR). Ideally a spec test since we don't need interaction.
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.
Thanks! For now I'll remove this test since we're not exposing the var for style overrides.
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.
Code LGTM!
I'll defer to @macandcheese on adding --calcite-tree-padding-y
.
Should this css variable be internal? I don't see a reason for it to be public. |
…f github.com:Esri/calcite-components into caripizza/3223-tree-item-limit-padding-y-var-spacing
@jcfranco can you please approve Screener changes on this one? |
Related Issue: #3223
Summary
Refactors calcite-tree-item styles to only apply the
--calcite-tree-padding-y
CSS var to top/bottom spacing.Also adds the following stylesheet changes: