From 6e8fad64b10e174a4976dcf95ccb7de7be866529 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Benny=20Powers=20-=20=D7=A2=D7=9D=20=D7=99=D7=A9=D7=A8?=
=?UTF-8?q?=D7=90=D7=9C=20=D7=97=D7=99!?=
Date: Thu, 16 Nov 2023 14:36:52 +0200
Subject: [PATCH] feat(card): lighter and darker palettes (#1327)
* chore: stylelint config
* feat(lib): context-picker allow attr
* feat(lib): reflect color-palette on demo
* fix(card): lighter/darker color-palettes
* fix(card): adjust whitespace to suit designs
* docs(card): custom header context demo
---
.changeset/card-whitespace.md | 4 +
.stylelintrc.yml | 32 +++---
elements/rh-accordion/rh-accordion-header.css | 2 +-
elements/rh-accordion/rh-accordion-panel.css | 13 ++-
elements/rh-alert/rh-alert.css | 2 +-
.../rh-audio-player-lightdom.css | 13 ++-
.../rh-audio-player-range-styles.css | 67 +++++++------
...h-audio-player-scrolling-text-overflow.css | 12 ++-
elements/rh-audio-player/rh-audio-player.css | 97 +++++++++++--------
elements/rh-avatar/rh-avatar.css | 36 ++++---
elements/rh-button/rh-button.css | 1 -
elements/rh-card/demo/color-context.html | 75 ++++++++++----
elements/rh-card/demo/variants.html | 73 +++++++-------
elements/rh-card/rh-card.css | 19 +++-
elements/rh-card/rh-card.ts | 13 ++-
elements/rh-code-block/rh-code-block.css | 7 +-
elements/rh-cta/rh-cta.css | 15 ++-
elements/rh-footer/rh-footer-lightdom.css | 24 +++--
elements/rh-footer/rh-footer.css | 7 +-
.../rh-navigation-secondary-dropdown.css | 4 +-
.../rh-navigation-secondary-lightdom.css | 28 ++++--
.../rh-navigation-secondary-menu.css | 21 ++--
.../rh-navigation-secondary-overlay.css | 7 +-
.../rh-navigation-secondary.css | 4 +-
elements/rh-subnav/rh-subnav-lightdom.css | 2 +-
elements/rh-subnav/rh-subnav.css | 48 ++++++---
elements/rh-table/rh-sort-button.css | 2 +-
elements/rh-table/rh-table-lightdom.css | 22 +++--
elements/rh-table/rh-table.css | 4 +-
elements/rh-tabs/rh-tab-panel.css | 2 +-
elements/rh-tabs/rh-tab.css | 83 ++++++++++------
elements/rh-tabs/rh-tabs.css | 3 +-
elements/rh-tag/rh-tag.css | 3 +-
elements/rh-tile/rh-tile-group.css | 2 +-
elements/rh-tile/rh-tile-lightdom.css | 10 +-
elements/rh-tile/rh-tile.css | 2 +-
elements/rh-tooltip/rh-tooltip.css | 90 ++++++++++-------
.../rh-context-demo/rh-context-demo.css | 1 -
.../rh-context-demo/rh-context-demo.ts | 13 ++-
.../rh-context-picker/rh-context-picker.css | 2 +-
.../rh-context-picker/rh-context-picker.ts | 44 ++++++---
package-lock.json | 34 ++++++-
package.json | 1 +
43 files changed, 604 insertions(+), 340 deletions(-)
create mode 100644 .changeset/card-whitespace.md
diff --git a/.changeset/card-whitespace.md b/.changeset/card-whitespace.md
new file mode 100644
index 0000000000..9ff7dc6a58
--- /dev/null
+++ b/.changeset/card-whitespace.md
@@ -0,0 +1,4 @@
+---
+"@rhds/elements": patch
+---
+``: adjust whitespace of card parts to suit design
diff --git a/.stylelintrc.yml b/.stylelintrc.yml
index 117f356772..12e82834b4 100644
--- a/.stylelintrc.yml
+++ b/.stylelintrc.yml
@@ -1,4 +1,7 @@
-extends: stylelint-config-standard
+extends:
+ - stylelint-config-standard
+ - stylelint-stylistic/config
+
ignoreFiles:
- node_modules/**/*
@@ -16,18 +19,6 @@ rules:
- ignoreShorthands:
- /grid/
- # TODO: migrate the following paragraph to stylelint-stylistic
- # see https://github.com/elirasza/stylelint-stylistic/tree/main/lib/rules/indentation
- string-quotes: double
- selector-combinator-space-after: always
- selector-combinator-space-before: always
- indentation:
- - 2
- - indentInsideParens: 'once-at-root-twice-in-block'
- max-line-length:
- - 100
- - ignorePattern: /--rh-font-family-/
-
number-max-precision: 6
no-descending-specificity:
- true
@@ -49,10 +40,23 @@ rules:
- ignorePseudoElements:
- /part(.*)/
+ stylistic/string-quotes: double
+ stylistic/selector-combinator-space-after: always
+ stylistic/selector-combinator-space-before: always
+ stylistic/indentation:
+ - 2
+ - indentInsideParens: 'once-at-root-twice-in-block'
+ stylistic/max-line-length:
+ - 100
+ - ignorePattern: /--rh-font-family-/
+
rhds/token-values: true
+ media-feature-range-notation: prefix
+
plugins:
- ./node_modules/@rhds/tokens/plugins/stylelint.cjs
+ - stylelint-stylistic
overrides:
- files:
@@ -60,7 +64,7 @@ overrides:
defaultSeverity: warning
extends: stylelint-config-standard-scss
rules:
- max-line-length:
+ stylistic/max-line-length:
- 120
- ignorePattern: /--rh-font-family-/
diff --git a/elements/rh-accordion/rh-accordion-header.css b/elements/rh-accordion/rh-accordion-header.css
index fdd866c670..89d89985d6 100644
--- a/elements/rh-accordion/rh-accordion-header.css
+++ b/elements/rh-accordion/rh-accordion-header.css
@@ -115,4 +115,4 @@ span {
.toggle:after {
inset-block: 0;
inset-inline-start: 0;
-}
\ No newline at end of file
+}
diff --git a/elements/rh-accordion/rh-accordion-panel.css b/elements/rh-accordion/rh-accordion-panel.css
index b05cdb494b..d59961e167 100644
--- a/elements/rh-accordion/rh-accordion-panel.css
+++ b/elements/rh-accordion/rh-accordion-panel.css
@@ -60,15 +60,20 @@
border-inline-end:
1px
solid
- var(--_panel-border-inline-end-color,
- var(--rh-color-border-subtle-on-light, #c7c7c7));
+ var(
+ --_panel-border-inline-end-color,
+ var(--rh-color-border-subtle-on-light, #c7c7c7)
+ );
background-color: var(--_background-color);
}
.content[expanded],
:host([expanded]) .content {
- --_panel-body--before-background-color: var(--_panel-content-body-accent-color,
- var(--rh-color-accent-base-on-light, #0066cc));
+ --_panel-body--before-background-color:
+ var(
+ --_panel-content-body-accent-color,
+ var(--rh-color-accent-base-on-light, #0066cc)
+ );
}
.body:after {
diff --git a/elements/rh-alert/rh-alert.css b/elements/rh-alert/rh-alert.css
index e181815ae0..c2a59e9a9d 100644
--- a/elements/rh-alert/rh-alert.css
+++ b/elements/rh-alert/rh-alert.css
@@ -41,7 +41,7 @@
}
:host([toast]),
-:host([variant="toast"]){
+:host([variant="toast"]) {
--_background-color: var(--rh-color-surface-lightest, #ffffff);
max-width: 550px;
diff --git a/elements/rh-audio-player/rh-audio-player-lightdom.css b/elements/rh-audio-player/rh-audio-player-lightdom.css
index 99a56ba6b8..4cec52dcb8 100644
--- a/elements/rh-audio-player/rh-audio-player-lightdom.css
+++ b/elements/rh-audio-player/rh-audio-player-lightdom.css
@@ -49,16 +49,20 @@ rh-audio-player[color-palette="dark"] {
rh-audio-player[color-palette="dark"] > * {
background-color:
- var(--rh-audio-player-background-color,
- var(--rh-color-surface-darkest, #151515));
+ var(
+ --rh-audio-player-background-color,
+ var(--rh-color-surface-darkest, #151515)
+ );
}
rh-audio-player-about,
rh-audio-player-subscribe,
rh-transcript {
background-color:
- var(--rh-audio-player-background-color,
- var(--rh-color-surface-lightest, #ffffff));
+ var(
+ --rh-audio-player-background-color,
+ var(--rh-color-surface-lightest, #ffffff)
+ );
}
rh-audio-player > [slot="series"] {
@@ -82,4 +86,3 @@ rh-audio-player [slot="heading"] {
rh-audio-player [slot="heading"] {
font-size: var(--rh-font-size-body-text-md, 1rem);
}
-
diff --git a/elements/rh-audio-player/rh-audio-player-range-styles.css b/elements/rh-audio-player/rh-audio-player-range-styles.css
index fd56d0518b..4ebbe339a8 100644
--- a/elements/rh-audio-player/rh-audio-player-range-styles.css
+++ b/elements/rh-audio-player/rh-audio-player-range-styles.css
@@ -1,26 +1,27 @@
-/*
-Adapted from:
-
-Copyright (c) 2023 by S. Shahriar (https://codepen.io/ShadowShahriar/pen/zYPPYrQ)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in the
-Software without restriction, including without limitation the rights to use,
-copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
-Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
-INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
-ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-IN THE SOFTWARE.
-*/
+/**
+ * @license Adapted from:
+ *
+ * Copyright (c) 2023 by S. Shahriar (https://codepen.io/ShadowShahriar/pen/zYPPYrQ)
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
+ * this software and associated documentation files (the "Software"), to deal in the
+ * Software without restriction, including without limitation the rights to use,
+ * copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
+ * Software, and to permit persons to whom the Software is furnished to do so,
+ * subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */
+
input[type="range"] {
display: inline-flex;
align-items: center;
@@ -45,7 +46,6 @@ input[type="range"] {
--_outline: var(--rh-border-width-md, 2px) solid var(--_interactive-color);
--_thumb-color: var(--rh-audio-player-range-thumb-color, var(--_accent-color));
--_progress-color: var(--rh-audio-player-range-progress-color, var(--_accent-color));
-
}
input[type="range"][hidden] {
@@ -95,13 +95,15 @@ input[type="range"]::-webkit-slider-thumb {
box-shadow: var(--box-fill);
border-radius: var(--_thumb-width, var(--_thumb-height));
- /* stylelint-disable-next-line max-line-length */
--_clip-top: calc((var(--_thumb-height) - var(--_track-height)) * 0.5 - 0.5px);
--_clip-bottom: calc(var(--_thumb-height) - var(--_clip-top));
--_clip-further: calc(100% + 1px);
-
- /* stylelint-disable-next-line max-line-length */
- --box-fill: calc(-100vmax - var(--_thumb-width, var(--_thumb-height))) 0 0 100vmax var(--_box-fill-color, currentcolor);
+ --box-fill:
+ calc(-100vmax - var(--_thumb-width, var(--_thumb-height)))
+ 0
+ 0
+ 100vmax
+ var(--_box-fill-color, currentcolor);
clip-path:
polygon(
@@ -122,8 +124,11 @@ input[type="range"]:disabled::-webkit-slider-thumb {
input[type="range"]::-webkit-slider-runnable-track {
border-radius: 3px;
- /* stylelint-disable-next-line max-line-length */
- background: linear-gradient(var(--_track-fill-color) 0 0) scroll no-repeat center / 100% calc(var(--_track-height) + 1px);
+ background:
+ linear-gradient(var(--_track-fill-color) 0 0)
+ scroll
+ no-repeat
+ center / 100% calc(var(--_track-height) + 1px);
}
input[type="range"],
@@ -164,4 +169,4 @@ input[type="range"]::-moz-range-progress {
input[type="range"]:disabled::-moz-range-thumb {
cursor: not-allowed;
-}
\ No newline at end of file
+}
diff --git a/elements/rh-audio-player/rh-audio-player-scrolling-text-overflow.css b/elements/rh-audio-player/rh-audio-player-scrolling-text-overflow.css
index 0f39445703..c611324c85 100644
--- a/elements/rh-audio-player/rh-audio-player-scrolling-text-overflow.css
+++ b/elements/rh-audio-player/rh-audio-player-scrolling-text-overflow.css
@@ -20,14 +20,18 @@
overflow-y: visible;
--_fade-color:
- var(--rh-audio-player-scrolling-text-overflow-background-color,
- var(--rh-color-surface-lightest, #ffffff));
+ var(
+ --rh-audio-player-scrolling-text-overflow-background-color,
+ var(--rh-color-surface-lightest, #ffffff)
+ );
}
#outer.dark {
--_fade-color:
- var(--rh-audio-player-scrolling-text-overflow-background-color,
- var(--rh-color-surface-darkest, #151515));
+ var(
+ --rh-audio-player-scrolling-text-overflow-background-color,
+ var(--rh-color-surface-darkest, #151515)
+ );
}
#outer.rtl {
diff --git a/elements/rh-audio-player/rh-audio-player.css b/elements/rh-audio-player/rh-audio-player.css
index 01b16be578..20d9def13c 100644
--- a/elements/rh-audio-player/rh-audio-player.css
+++ b/elements/rh-audio-player/rh-audio-player.css
@@ -33,14 +33,18 @@
--_about-mediatitle-display: none;
--_about-heading-display: flex;
--_surface-color:
- var(--rh-audio-player-background-color,
- var(--rh-color-surface-lightest, #ffffff));
+ var(
+ --rh-audio-player-background-color,
+ var(--rh-color-surface-lightest, #ffffff)
+ );
--_border-color: var(--rh-color-border-subtle-on-light, #c7c7c7);
--_box-shadow: var(--rh-box-shadow-md, 0 4px 6px 1px rgba(21, 21, 21, 0.25));
--_text-color: var(--rh-color-text-primary-on-light, #151515);
--_secondary-text-color:
- var(--rh-audio-player-secondary-text-color,
- var(--rh-color-text-secondary-on-light, #4d4d4d));
+ var(
+ --rh-audio-player-secondary-text-color,
+ var(--rh-color-text-secondary-on-light, #4d4d4d)
+ );
--_secondary-opacity: var(--rh-audio-player-secondary-opacity, 1);
--rh-tooltip-content-padding-block-start: var(--rh-space-md, 8px);
--rh-tooltip-content-padding-block-end: var(--rh-space-md, 8px);
@@ -49,37 +53,45 @@
}
#container.mobile-safari {
- --_time-slider-extension: calc(
- var(--_button-size, 40px) + var(--_icon-gap,
- var(--rh-space-xl, 24px)
- )
- );
+ --_time-slider-extension:
+ calc(
+ var(--_button-size, 40px) + var(
+ --_icon-gap,
+ var(--rh-space-xl, 24px)
+ )
+ );
}
#container.has-accent-color {
- --_border-color: rgba(0,0,0,0.5);
+ --_border-color: rgba(0, 0, 0, 0.5);
--_secondary-text-color:
- var(--rh-audio-player-secondary-text-color,
- var(--rh-color-text-primary-on-light, #151515));
+ var(
+ --rh-audio-player-secondary-text-color,
+ var(--rh-color-text-primary-on-light, #151515)
+ );
--_range-track-color: rgb(255 255 255 / 0.5);
--_secondary-opacity: var(--rh-audio-player-secondary-opacity, 0.75);
--_static-border-color: transparent;
- --_static-overlay-focus-color: rgba(80,80,80,0.5);
- --_static-overlay-color: rgba(0,0,0,0.5);
+ --_static-overlay-focus-color: rgba(80, 80, 80, 0.5);
+ --_static-overlay-color: rgba(0, 0, 0, 0.5);
}
#container.dark {
color: var(--rh-audio-player-text-color, var(--_text-color));
--_surface-color:
- var(--rh-audio-player-background-color,
- var(--rh-color-surface-darkest, #151515));
+ var(
+ --rh-audio-player-background-color,
+ var(--rh-color-surface-darkest, #151515)
+ );
--_border-color: var(--rh-color-border-subtle-on-dark, #707070);
--_box-shadow: none;
--_text-color: var(--rh-color-text-primary-on-dark, #ffffff);
--_secondary-text-color:
- var(--rh-audio-player-secondary-text-color,
- var(--rh-color-text-secondary-on-dark, #c7c7c7));
+ var(
+ --rh-audio-player-secondary-text-color,
+ var(--rh-color-text-secondary-on-dark, #c7c7c7)
+ );
--_static-border-color: var(--rh-color-border-subtle-on-dark, #707070);
--_static-text-color: var(--rh-color-text-primary-on-dark, #ffffff);
--_static-highlight-color: var(--rh-color-surface-dark, #383838);
@@ -100,7 +112,7 @@
}
#container.dark.has-accent-color {
- --_border-color: rgba(255,255,255,0.5);
+ --_border-color: rgba(255, 255, 255, 0.5);
--_secondary-opacity: var(--rh-audio-player-secondary-opacity, 0.75);
}
@@ -113,11 +125,10 @@
text-align: right;
}
-::slotted(rh-audio-player-about),
-::slotted(rh-audio-player-subscribe) ,
-::slotted(rh-audio-player-transcript){
- background-color:
- var(--_static-surface-color);
+::slotted(rh-audio-player-about),
+::slotted(rh-audio-player-subscribe),
+::slotted(rh-audio-player-transcript) {
+ background-color: var(--_static-surface-color);
}
::slotted([slot="series"]) {
@@ -209,7 +220,7 @@
}
rh-tooltip {
- display: flex;
+ display: flex;
}
rh-tooltip > * {
@@ -358,7 +369,7 @@ input[type="range"] {
--_svg-size: var(--rh-icon-size-02, 24px);
}
-[part="toolbar"]{
+[part="toolbar"] {
position: relative;
}
@@ -425,7 +436,7 @@ rh-menu > button {
text-align: left;
max-width: 200px;
color: var(--_static-text-color);
- background-color: var(--_static-overlay-color);
+ background-color: var(--_static-overlay-color);
font-size: var(--rh-font-size-body-text-md, 1rem);
line-height: var(--rh-line-height-body-text, 1.5);
font-family: var(--rh-font-family-body-text, RedHatText, "Red Hat Text", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans JP", "Noto Sans KR", "Noto Sans Malayalam", "Noto Sans SC", "Noto Sans TC", "Noto Sans Thai", Helvetica, Arial, sans-serif);
@@ -459,8 +470,8 @@ rh-menu > button:focus {
}
#playback-rate-tooltip {
- margin-inline-start: 10px;
- margin-inline-end: 2px;
+ margin-inline-start: 10px;
+ margin-inline-end: 2px;
}
#playback-rate-stepper,
@@ -545,11 +556,13 @@ rh-menu > button:focus {
}
:host([layout^="compact"]) #container.mobile-safari {
- --_time-slider-extension: calc(
- 80px + var(--_button-size, 40px) + 1.5 * var(--_icon-gap,
- var(--rh-space-xl, 24px)
- )
- );
+ --_time-slider-extension:
+ calc(
+ 80px + var(--_button-size, 40px) + 1.5 * var(
+ --_icon-gap,
+ var(--rh-space-xl, 24px)
+ )
+ );
}
:host([layout="compact-wide"]) {
@@ -592,11 +605,13 @@ rh-menu > button:focus {
}
:host([layout="full"]) #container.mobile-safari {
- --_time-slider-extension: calc(
- 80px + var(--_button-size, 40px) + var(--_icon-gap,
- var(--rh-space-xl, 24px)
- )
- );
+ --_time-slider-extension:
+ calc(
+ 80px + var(--_button-size, 40px) + var(
+ --_icon-gap,
+ var(--rh-space-xl, 24px)
+ )
+ );
}
:host([layout="full"][mediatitle]) #container {
@@ -648,7 +663,7 @@ rh-menu > button:focus {
flex: 0 0 calc(var(--_time-slider-width) / 2);
margin: -4px 0 var(--rh-length-lg, 16px);
}
-
+
:host([layout="full"]) #duration {
flex: 0 0 calc(var(--_time-slider-width) / 2);
justify-content: flex-end;
@@ -658,7 +673,7 @@ rh-menu > button:focus {
:host([dir="rtl"][layout="full"]) #duration {
justify-content: flex-start;
}
-
+
:host([layout="full"]) #container.mobile-safari #duration {
margin-inline-end: -4px;
}
diff --git a/elements/rh-avatar/rh-avatar.css b/elements/rh-avatar/rh-avatar.css
index d7aec6c153..3b8208e51d 100644
--- a/elements/rh-avatar/rh-avatar.css
+++ b/elements/rh-avatar/rh-avatar.css
@@ -11,12 +11,15 @@
display: grid;
color: var(--rh-color-text-secondary-on-light, #4d4d4d);
- --_colors: var(--rh-avatar-colors,
- var(--rh-color-blue-200, #73bcf7)
- var(--rh-color-cyan-300, #009596)
- var(--rh-color-green-500, #3e8635)
- var(--rh-color-red-300, #f56d6d)
- var(--rh-color-purple-500, #6753ac));
+ --_colors:
+ var(
+ --rh-avatar-colors,
+ var(--rh-color-blue-200, #73bcf7)
+ var(--rh-color-cyan-300, #009596)
+ var(--rh-color-green-500, #3e8635)
+ var(--rh-color-red-300, #f56d6d)
+ var(--rh-color-purple-500, #6753ac)
+ );
column-gap: var(--rh-space-lg, 16px);
width: min-content;
@@ -84,21 +87,26 @@ slot {
#container.dark {
color: var(--rh-color-text-secondary-on-dark, #c7c7c7);
- --_colors: var(--rh-avatar-colors,
- var(--rh-color-blue-400, #0066cc)
- var(--rh-color-cyan-500, #003737)
- var(--rh-color-green-700, #3e8635)
- var(--rh-color-red-500, #ee0000)
- var(--rh-color-purple-700, #1f0066));
+ --_colors:
+ var(
+ --rh-avatar-colors,
+ var(--rh-color-blue-400, #0066cc)
+ var(--rh-color-cyan-500, #003737)
+ var(--rh-color-green-700, #3e8635)
+ var(--rh-color-red-500, #ee0000)
+ var(--rh-color-purple-700, #1f0066)
+ );
}
-img, svg {
+img,
+svg {
object-fit: cover;
object-position: center;
}
canvas,
-img, svg {
+img,
+svg {
overflow: hidden;
width: var(--rh-avatar-size, var(--rh-size-icon-06, 64px));
max-width: var(--rh-size-icon-06, 64px);
diff --git a/elements/rh-button/rh-button.css b/elements/rh-button/rh-button.css
index 6fb042363a..9e19e14883 100644
--- a/elements/rh-button/rh-button.css
+++ b/elements/rh-button/rh-button.css
@@ -547,4 +547,3 @@ button[disabled] {
:host(:not([disabled])) .hasIcon [part="icon"] {
cursor: pointer;
}
-
diff --git a/elements/rh-card/demo/color-context.html b/elements/rh-card/demo/color-context.html
index 4b33c82b19..e30754c6e8 100644
--- a/elements/rh-card/demo/color-context.html
+++ b/elements/rh-card/demo/color-context.html
@@ -11,13 +11,12 @@
Default card, slotted content and footer
-
+
Slotted title, content, and footer
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est egestas, a
- sollicitudin mauris tincidunt. Pellentesque vel dapibus risus. Nullam aliquam felis orci, eget cursus mi
- lacinia quis. Vivamus at felis sem.
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+ Nullam eleifend elit sed est egestas, a sollicitudin mauris
+ tincidunt. Pellentesque vel dapibus risus. Nullam aliquam
+ felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+ Nullam eleifend elit sed est egestas, a sollicitudin mauris
+ tincidunt. Pellentesque vel dapibus risus. Nullam aliquam
+ felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.
Nullam eleifend elit sed est egestas, a sollicitudin mauris
tincidunt. Pellentesque vel dapibus risus. Nullam aliquam
felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.
Nullam eleifend elit sed est egestas, a sollicitudin mauris
tincidunt. Pellentesque vel dapibus risus. Nullam aliquam
felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.
-
+ Call to action
-
-
Alternative color scheme
+
+
Lighter color palette
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Nullam eleifend elit sed est egestas, a sollicitudin mauris
tincidunt. Pellentesque vel dapibus risus. Nullam aliquam
felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Nullam eleifend elit sed est egestas, a sollicitudin mauris
tincidunt. Pellentesque vel dapibus risus. Nullam aliquam
felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Nullam eleifend elit sed est egestas, a sollicitudin mauris
tincidunt. Pellentesque vel dapibus risus. Nullam aliquam
felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.
Nullam eleifend elit sed est egestas, a sollicitudin mauris
tincidunt. Pellentesque vel dapibus risus. Nullam aliquam
felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.
-
+ Call to action
@@ -70,7 +70,7 @@
End aligned content, footer
Nullam eleifend elit sed est egestas, a sollicitudin mauris
tincidunt. Pellentesque vel dapibus risus. Nullam aliquam
felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.
-
+ Call to action
@@ -84,7 +84,7 @@
End aligned content, footer
Nullam eleifend elit sed est egestas, a sollicitudin mauris
tincidunt. Pellentesque vel dapibus risus. Nullam aliquam
felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.
-
+ Call to action
@@ -98,7 +98,7 @@
End aligned content, footer
Nullam eleifend elit sed est egestas, a sollicitudin mauris
tincidunt. Pellentesque vel dapibus risus. Nullam aliquam
felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.
-
+ Call to action
@@ -110,7 +110,7 @@
Card with slotted image header. Full width image.
Nullam eleifend elit sed est egestas, a sollicitudin mauris
tincidunt. Pellentesque vel dapibus risus. Nullam aliquam
felis orci, eget cursus mi lacinia quis. Vivamus at felis sem.
-
+ Call to action
@@ -133,29 +133,34 @@