-
Notifications
You must be signed in to change notification settings - Fork 23
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
feat(announcement): add <rh-announcement>
v2
#2153
base: staging/cubone
Are you sure you want to change the base?
Conversation
Continuation on PR #1722.
🦋 Changeset detectedLatest commit: 0edd9e0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for red-hat-design-system ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Size Change: +2.38 kB (+1.15%) Total Size: 209 kB
ℹ️ View Unchanged
|
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.
-
Should be there be space between the content and the close button? (cc @dmazon-redhat)
-
I noticed that the dark color palettes all have the overriding
dark-alt
surface color. Should the light color palettes all use thelightest
surface color?
Made some spacing adjustments. PTAL.
@dmazon-redhat let me know if this change needs made. TY! |
FYI docs are now up. PTAL. I have the personalization/implementation docs coded but stashed on my local computer while we confirm they are okay to make public. |
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.
overall looks very clean. almost all my comments here are nits, but please do expand on the tests and see if we can remove dark-alt
text-align: center; | ||
|
||
&.dark { | ||
--rh-color-surface: var(--rh-color-surface-dark-alt, #292929); |
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.
can we avoid dark-alt
? it's kind of a footgun in our theming system
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 question is likely best answered by @dmazon-redhat. Is it possible to have announcement follow our theming system's colors as follows?
- Dark 👉
var(--rh-color-surface-dark, #383838)
- Darker 👉
var(--rh-color-surface-darker, #1f1f1f)
- Darkest 👉
var(--rh-color-surface-darkest, #151515)
See this video demonstrating what those colors look like in action.
Most (all?) of our components follow these conventions. If necessary, users can customize this via something like:
rh-announcement[color-palette="darker"] { --rh-color-surface: powderblue; }
@bennypowers LMK if you have ideas/direction about this via color transformations (color-mix
?).
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.
maybe something like this:
#container {
background: var(--rh-color-surface);
&.dark {
background: oklch(from var(--rh-color-surface) calc(l + 10%) c h);
}
}
https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/oklch
…t-design-system into feat/rh-announcement-v2
…ntent color definitions
What I did
<rh-announcement>
to a new PR because the old PR (feat(announcement): add<rh-announcement>
#1722) had so many merge conflicts.<rh-announcement>
. See the Figma file.imgleft
boolean attribute toimage-position="inline-start"
.Testing Instructions
<rh-announcement>
#1722inline-start
andblock-start
body
slotNotes to Reviewers
Closes #1576.
To do's