Skip to content

Commit b46597c

Browse files
authored
Apply box-sizing: border-box to all Amplify theme children (#615)
* Apply box-sizing: border box to all Amplify theme children
1 parent 6a56a50 commit b46597c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Diff for: .changeset/shaggy-ladybugs-crash.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@aws-amplify/ui": patch
3+
---
4+
5+
Apply `box-sizing: border-box` styling to all Amplify theme children

Diff for: packages/ui/src/theme/css/styles.scss

+6
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ html {
1717
all: unset; /* protect against external styles */
1818
}
1919

20+
// Must be defined AFTER `[class*='amplify']
21+
// or rules will be unset to initial/default
22+
[data-amplify-theme] * {
23+
box-sizing: border-box;
24+
}
25+
2026
.sr-only {
2127
position: absolute !important;
2228
width: 1px !important;

0 commit comments

Comments
 (0)