alert: Rethinking the HTML APIs #265
Replies: 1 comment
-
These notes were all addressed already, so let's lock this conversation |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
👋
A few notes for the
<rh-alert>
HTML API:Are we able to simplify (or even remove altogether) the light-DOM classes for rh-alert? Along the way we could rename the
action-group
slot toactions
, and change thedescription
slot to an anonymous slot. Fewer hyphens are always better, amirite? As well, what do you think of using data attrs instead of custom attrs for the button actions? That way, we could come back at a later date andWDYT? cc @brianferry
before:
after:
We could do this easily enough with CSS
Admittedly, this should all have been caught in code-review, but we haven't released anything yet, and the previous rh-alert PR was
in many ways a sandbox for processes in this repo, so 🤷 my bad.
Beta Was this translation helpful? Give feedback.
All reactions