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/indepented component styling #1029

Merged
merged 13 commits into from
Dec 24, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
FIX: styling correct on accordion, article and card component
JoeriRoijenga committed Dec 18, 2024
commit 4fa465870d0dc2c975477bb116a28484a2a7723f
7 changes: 7 additions & 0 deletions packages/components-css/src/accordion/index.scss
Original file line number Diff line number Diff line change
@@ -66,3 +66,10 @@
justify-content: center;
margin-block: var(--rhc-accordion-button-icon-margin-block);
}

.utrecht-accordion__panel {
font-family: var(--rhc-font-family-primary, inherit);
font-size: var(--rhc-font-size-xs-desktop, inherit);
font-weight: var(--rhc-font-weight-regular, inherit);
line-height: var(--rhc-line-height-md, inherit);
}
7 changes: 7 additions & 0 deletions packages/components-css/src/article/index.scss
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
// if needed add styles here for the Article components.

.utrecht-article {
font-family: var(--rhc-font-family-primary, inherit);
font-size: var(--rhc-font-size-xs-desktop, inherit);
font-weight: var(--rhc-font-weight-regular, inherit);
line-height: var(--rhc-line-height-md, inherit);
}
3 changes: 3 additions & 0 deletions packages/components-css/src/card/_mixin.scss
Original file line number Diff line number Diff line change
@@ -5,7 +5,10 @@
column-gap: var(--rhc-card-as-link-column-gap, 16px);
display: inline-flex;
flex-direction: column;
font-family: var(--rhc-font-family-primary, inherit);
font-size: var(--rhc-font-size-xs-desktop, inherit);
inline-size: var(--rhc-card-as-link-inline-size, 328px);
line-height: var(--rhc-line-height-md, inherit);
position: relative;
text-decoration: none;
}