-
Notifications
You must be signed in to change notification settings - Fork 80
fix(alert): add public --calcite-alert-offset-size css token #10872
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
Conversation
…ciado88/10520-alert-token-rename
@aPreciado88 Can you revisit the PR title to mention the prop that was added instead of focusing on exposing an internal prop? |
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.
🚀
@@ -7,12 +7,12 @@ | |||
* @prop --calcite-alert-background-color: Specifies the component's background color. | |||
* @prop --calcite-alert-corner-radius: Specifies the component's corner radius. | |||
* @prop --calcite-alert-shadow: Specifies the component's shadow. | |||
* @prop --calcite-alert-offset-size: Specifies the component's bottom spacing |
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.
Could we change this description to be a bit more descriptive now that the name is less specific? It may not be bottom spacing - it could be top, top-right, bottom, bottom-left, etc, depending on placement
.
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.
@macandcheese I can update this! What would be a more appropriate description?
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.
cc @geospatialem / @DitwanP but something like:
"Specifies the component's "placement"
offset" or something?
@ashetland @SkyeSeitz Could you please confirm that these are the usual chromatic false positives? |
@@ -7,12 +7,12 @@ | |||
* @prop --calcite-alert-background-color: Specifies the component's background color. | |||
* @prop --calcite-alert-corner-radius: Specifies the component's corner radius. | |||
* @prop --calcite-alert-shadow: Specifies the component's shadow. | |||
* @prop --calcite-alert-offset-size: Specifies the component's placement offset. |
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.
+1 for Adam's comment.
WRT the styling, can you add backticks so the prop is displayed in our docs?
* @prop --calcite-alert-offset-size: Specifies the component's placement offset. | |
* @prop --calcite-alert-offset-size: Specifies the component's `placement` offset. |
Related Issue: #10520
Summary
Rename internal
--calcite-internal-alert-edge-distance
css token to--calcite-alert-offset-size
and make it public.