Skip to content

Commit 098c2bb

Browse files
authored
chore: remove className from blocked props (#4374)
1 parent 73ab04b commit 098c2bb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/good-jokes-boil.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@twilio-paste/box": patch
3+
"@twilio-paste/core": patch
4+
---
5+
6+
[Box] remove `className` from `BOX_PROPS_TO_BLOCK` so that `safelySpreadBoxProps` doesn't strip away usage of `styled`. Necessary for One Console chrome team to customize certain components. `styled` should not be used by other teams and `className` should not be used at all with Paste components.

packages/paste-core/primitives/box/src/SafelySpreadProps.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export const BOX_PROPS_TO_BLOCK = [
2323
...GRID_PROPS,
2424
...TYPOGRAPHY_PROPS,
2525
...Object.keys(PseudoPropStyles),
26-
"className",
2726
"style",
2827
];
2928

0 commit comments

Comments
 (0)