Skip to content

Commit e86f9a3

Browse files
hbucheljudygabHeather Buchelioanabrooks
authored andcommitted
React/border width color style via style props (#4161)
* add border color, width and style in style props * Create happy-jeans-wonder.md * update borderColor and borderWidth prop types * update react test snapshot * Update packages/react/src/primitives/shared/constants.ts Co-authored-by: Heather Buchel <hbuchel@gmail.com> * updated test snaps * chore: update borderWidth to use BorderWidthKeys, export BorderWidthKeys from ui package * chore: update docs props tables * chore: update changeset to include ui package --------- Co-authored-by: judygab <ivditigabeskiria@gmail.com> Co-authored-by: Heather Buchel <buchel@amazon.com> Co-authored-by: judygab <50160672+judygab@users.noreply.github.com> Co-authored-by: Ioana Brooks <68251134+ioanabrooks@users.noreply.github.com>
1 parent 71a99ed commit e86f9a3

File tree

7 files changed

+533
-0
lines changed

7 files changed

+533
-0
lines changed

.changeset/happy-jeans-wonder.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@aws-amplify/ui-react": patch
3+
"@aws-amplify/ui": patch
4+
---
5+
6+
Add `borderColor`, `borderWidth`, and `borderStyle` style props

docs/tests/__snapshots__/props-table.test.ts.snap

+21
Original file line numberDiff line numberDiff line change
@@ -12469,6 +12469,27 @@ exports[`Props Table 1`] = `
1246912469
\\"category\\": \\"Style\\",
1247012470
\\"isOptional\\": true
1247112471
},
12472+
\\"borderColor\\": {
12473+
\\"name\\": \\"borderColor\\",
12474+
\\"type\\": \\"ResponsiveStyle<ColorKeys<StyleToken<Property.BorderColor>>>\\",
12475+
\\"description\\": \\"Shorthand CSS property that sets an element's border-color. See: [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/border-color)\\",
12476+
\\"category\\": \\"Style\\",
12477+
\\"isOptional\\": true
12478+
},
12479+
\\"borderWidth\\": {
12480+
\\"name\\": \\"borderWidth\\",
12481+
\\"type\\": \\"ResponsiveStyle<\\\\n BorderWidthKeys<StyleToken<Property.BorderWidth>>\\\\n >\\",
12482+
\\"description\\": \\"Shorthand CSS property that sets an element's border-width. See: [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/border-width)\\",
12483+
\\"category\\": \\"Style\\",
12484+
\\"isOptional\\": true
12485+
},
12486+
\\"borderStyle\\": {
12487+
\\"name\\": \\"borderStyle\\",
12488+
\\"type\\": \\"ResponsiveStyle<StyleToken<Property.BorderStyle>>\\",
12489+
\\"description\\": \\"Shorthand CSS property that sets an element's border-style. See: [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/border-style)\\",
12490+
\\"category\\": \\"Style\\",
12491+
\\"isOptional\\": true
12492+
},
1247212493
\\"borderRadius\\": {
1247312494
\\"name\\": \\"borderRadius\\",
1247412495
\\"type\\": \\"ResponsiveStyle<RadiiKeys<StyleToken<Property.BorderRadius>>>\\",

0 commit comments

Comments
 (0)