Skip to content

Commit 39b26f6

Browse files
committed
changeset
1 parent c04123c commit 39b26f6

File tree

4 files changed

+1055
-1100
lines changed

4 files changed

+1055
-1100
lines changed

.changeset/gorgeous-ants-hammer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@shopify/polaris': patch
3+
---
4+
5+
Added position, opacity, top, left, right, bottom, z-index to `Box`

polaris-react/src/components/Box/Box.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
--pc-box-padding-inline-end: initial;
5252
--pc-box-padding-block-start: initial;
5353
--pc-box-width: initial;
54-
--pc-box-border-color: initial;
5554
--pc-box-border-width: var(--p-border-width-1);
5655
background-color: var(--pc-box-background);
5756
box-shadow: var(--pc-box-shadow);
@@ -92,7 +91,6 @@
9291
--pc-box-border-inline-end-width,
9392
var(--pc-box-border-width)
9493
);
95-
border-color: var(--pc-box-border-color);
9694
color: var(--pc-box-color);
9795
min-height: var(--pc-box-min-height);
9896
min-width: var(--pc-box-min-width);

polaris-react/src/components/Box/Box.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ export interface BoxProps {
9393
borderRadiusStartStart?: BorderRadiusTokenScale;
9494
/** Verital start horizontal end border radius */
9595
borderRadiusStartEnd?: BorderRadiusTokenScale;
96-
/** Border color */
97-
borderColor?: ColorTokenScale;
9896
/** Border width */
9997
borderWidth?: ShapeBorderWidthScale;
10098
/** Vertical start border width */
@@ -157,7 +155,6 @@ export const Box = forwardRef<HTMLElement, BoxProps>(
157155
borderInlineStart,
158156
borderInlineEnd,
159157
borderBlockStart,
160-
borderColor,
161158
borderWidth,
162159
borderBlockStartWidth,
163160
borderBlockEndWidth,
@@ -225,9 +222,6 @@ export const Box = forwardRef<HTMLElement, BoxProps>(
225222
'--pc-box-border-radius-start-end': borderRadiusStartEnd
226223
? `var(--p-border-radius-${borderRadiusStartEnd})`
227224
: undefined,
228-
'--pc-box-border-color': borderColor
229-
? `var(--p-${borderColor})`
230-
: undefined,
231225
'--pc-box-border-width': borderWidth
232226
? `var(--p-border-width-${borderWidth})`
233227
: undefined,

0 commit comments

Comments
 (0)