Skip to content

Commit b2cdf1c

Browse files
authored
feat(Compass): add isPill to Drawer by default (#12151)
* feat(Compass): add isPill to Drawer by default * add isPill to CompassContent Drawer * fix example css
1 parent 80b72de commit b2cdf1c

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

packages/react-core/src/components/Compass/Compass.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const Compass: React.FunctionComponent<CompassProps> = ({
9595

9696
if (hasDrawer) {
9797
return (
98-
<Drawer {...drawerProps}>
98+
<Drawer isPill {...drawerProps}>
9999
<DrawerContent panelContent={drawerContent}>
100100
<DrawerContentBody>{compassContent}</DrawerContentBody>
101101
</DrawerContent>

packages/react-core/src/components/Compass/CompassContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const CompassContent: React.FunctionComponent<CompassContentProps> = ({
3030

3131
if (hasDrawer) {
3232
return (
33-
<Drawer {...drawerProps}>
33+
<Drawer isPill {...drawerProps}>
3434
<DrawerContent panelContent={drawerContent}>{compassContent}</DrawerContent>
3535
</Drawer>
3636
);

packages/react-core/src/components/Compass/__tests__/__snapshots__/Compass.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ exports[`Matches the snapshot with basic layout 1`] = `
4747
exports[`Matches the snapshot with drawer 1`] = `
4848
<DocumentFragment>
4949
<div
50-
class="pf-v6-c-drawer pf-m-expanded"
50+
class="pf-v6-c-drawer pf-m-expanded pf-m-pill"
5151
>
5252
<div
5353
class="pf-v6-c-drawer__main"

packages/react-core/src/components/Compass/__tests__/__snapshots__/CompassContent.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
exports[`Matches the snapshot with drawer 1`] = `
44
<DocumentFragment>
55
<div
6-
class="pf-v6-c-drawer pf-m-expanded"
6+
class="pf-v6-c-drawer pf-m-expanded pf-m-pill"
77
>
88
<div
99
class="pf-v6-c-drawer__main"

packages/react-core/src/components/Compass/examples/compass.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
#ws-react-p-compass-basic [class*="pf-v6-c-compass"] {
1+
#ws-react-a-compass-basic [class*="pf-v6-c-compass"] {
22
position: relative;
33
}
44

5-
#ws-react-p-compass-basic [class*="pf-v6-c-compass"]::after {
5+
#ws-react-a-compass-basic [class*="pf-v6-c-compass"]::after {
66
content: "";
77
position: absolute;
88
inset: 0;
99
border: var(--pf-t--global--border--width--regular) dashed var(--pf-t--global--border--color--default);
1010
pointer-events: none;
1111
}
1212

13-
#ws-react-p-compass-with-alternate-footer [class*="pf-v6-c-compass"] {
13+
#ws-react-a-compass-with-alternate-footer [class*="pf-v6-c-compass"] {
1414
position: relative;
1515
}
1616

17-
#ws-react-p-compass-with-alternate-footer [class*="pf-v6-c-compass"]:not([class*="footer"])::after {
17+
#ws-react-a-compass-with-alternate-footer [class*="pf-v6-c-compass"]:not([class*="footer"])::after {
1818
content: "";
1919
position: absolute;
2020
inset: 0;

0 commit comments

Comments
 (0)