Skip to content
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

fix(blockquote): fix center alignment, enforce blockquote font size and update Style docs #2112

Merged
merged 16 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/thick-flowers-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rhds/elements": patch
---

`<rh-blockquote>`: make quote content centered when `align="center"`
6 changes: 5 additions & 1 deletion elements/rh-blockquote/rh-blockquote.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
:host {
color: var(--rh-color-text-primary);
margin: 0 auto;
text-align: left;
text-align: start;
font-size: var(--rh-font-size-body-text-lg, 1.125rem);
font-family: var(--rh-font-family-heading, RedHatDisplay, 'Red Hat Display', '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);
line-height: var(--rh-line-height-body-text, 1.5);
Expand Down Expand Up @@ -45,6 +45,10 @@ rh-icon {
text-align: center;
}

:host([align='center']) #quote ::slotted(*) {
max-inline-size: none !important;
}

:host([size='large']) {
font-size: var(--rh-font-size-body-text-2xl, 1.5rem);
line-height: var(--rh-line-height-heading, 1.3);
Expand Down
Loading