Skip to content

Commit d33d617

Browse files
committed
fix: better scope styles to prevent clashing styles with PF
1 parent 22909d8 commit d33d617

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

packages/module/src/catalog/QuickStartTile.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
// some icons provided to catalog tiles might have no defined height/width. Without this style, in those cases
66
// the icons would have a height and width of 0.
7-
.pf-v6-c-card__header-main .pf-v6-c-icon__content, {
7+
.pfext-catalog-item .pf-v6-c-card__header-main .pf-v6-c-icon__content {
88
display: contents;
99
}
1010

11-
.pf-v6-c-card.pf-m-selectable::before, .pf-v6-c-card.pf-m-clickable::before {
12-
border: var(--pf-v6-c-card--BorderColor) var(--pf-v6-c-card--BorderStyle) var(--pf-v6-c-card--BorderWidth) !important;
11+
.pfext-catalog-item.pf-v6-c-card.pf-m-selectable::before, .pfext-catalog-item.pf-v6-c-card.pf-m-clickable::before {
12+
border: var(--pf-v6-c-card--BorderColor) var(--pf-v6-c-card--BorderStyle) var(--pf-v6-c-card--BorderWidth);
1313
}

packages/module/src/catalog/QuickStartTile.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ const QuickStartTile: React.FC<QuickStartTileProps> = ({
137137
id={`${id}-catalog-tile`}
138138
style={{ height: '100%' }}
139139
data-testid={`qs-card-${camelize(displayName)}`}
140+
className="pfext-catalog-item"
140141
{...(isActive && {
141142
isClickable: true,
142143
isSelectable: true,

packages/module/src/controller/QuickStartTaskHeader.scss

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
1-
button.pf-v6-c-wizard__nav-link {
1+
.pfext-quick-start-task-header button.pf-v6-c-wizard__nav-link {
22
margin-bottom: var(--pf-t--global--spacer--md);
33
}
4-
button.pf-v6-c-wizard__nav-link.pf-m-current {
4+
.pfext-quick-start-task-header button.pf-v6-c-wizard__nav-link.pf-m-current {
55
--pf-v6-c-wizard__nav-link-main--BackgroundColor: transparent;
66
}
7-
button.pf-v6-c-wizard__nav-link::before {
7+
.pfext-quick-start-task-header button.pf-v6-c-wizard__nav-link::before {
88
background-color: var(--pf-v6-c-wizard__nav-link--m-current--before--BackgroundColor);
99
color: var(--pf-v6-c-wizard__nav-link--m-current--before--Color);
1010
min-width: var(--pf-v6-c-wizard__nav-link--before--Width);
1111
}
1212

1313
.pfext-quick-start-task-header {
14-
button::before {
15-
content: none;
16-
}
1714

1815
&__title {
1916
font-family: var(--pf-t--global--font--family--body);

packages/module/src/controller/QuickStartTaskHeader.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ const QuickStartTaskHeader: React.FC<QuickStartTaskHeaderProps> = ({
7979
component="button"
8080
isCurrent={isActiveTask}
8181
status={status}
82+
className="pfext-quick-start-task-header"
8283
>
8384
{children}
8485
</WizardNavItem>

0 commit comments

Comments
 (0)