Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit a3c1a19

Browse files
Merge pull request #304 from chakra-ui/fix/include-missing-style-props
feat: include style props for flex grow and native border radius props
2 parents cf77e26 + 21ee9e5 commit a3c1a19

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

packages/chakra-ui-core/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Log
22

3+
## 0.6.3
4+
5+
### Patch Changes
6+
7+
- fix: includes missing style props for border-radius and flex-grow style declarations"
8+
39
## 0.6.2
410

511
### Patch Changes

packages/chakra-ui-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@chakra-ui/vue",
3-
"version": "0.6.2",
3+
"version": "0.6.3",
44
"description": "Build Accessible and Responsive Vue.js websites and applications with speed ⚡️",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",

packages/chakra-ui-core/src/CFlex/CFlex.stories.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,19 @@ storiesOf('UI | Flex', module)
2222
</CFlex>
2323
`
2424
}))
25+
.add('Flex grow', () => ({
26+
components: { CFlex, CBox, CText },
27+
template: `
28+
<CFlex w="600px" align="center">
29+
<CBox flex-grow="2" w="10" mr="3" h="10" bg="blue.100">1</CBox>
30+
<CBox rounded-top="lg" w="10" mr="3" h="10" bg="blue.100">1</CBox>
31+
<CBox rounded-right="lg" w="10" mr="3" h="10" bg="blue.100">2</CBox>
32+
<CBox rounded-bottom="lg" w="10" mr="3" h="10" bg="blue.100">3</CBox>
33+
<CBox rounded-right="lg" w="10" mr="3" h="10" bg="blue.100">4</CBox>
34+
<CBox border-top-right-radius="lg" w="10" mr="3" h="10" bg="blue.100">5</CBox>
35+
<CBox border-top-left-radius="lg" w="10" mr="3" h="10" bg="blue.100">6</CBox>
36+
<CBox border-bottom-right-radius="lg" w="10" mr="3" h="10" bg="blue.100">7</CBox>
37+
<CBox border-bottom-left-radius="lg" w="10" h="10" bg="blue.100">8</CBox>
38+
</CFlex>
39+
`
40+
}))

packages/chakra-ui-core/src/config/props/props.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ const baseProps = {
6363
borderLeft: SNA,
6464
borderRight: SNA,
6565
borderTop: SNA,
66+
borderTopLeftRadius: SNA,
67+
borderTopRightRadius: SNA,
68+
borderBottomRightRadius: SNA,
69+
borderBottomLeftRadius: SNA,
6670
borderBottom: SNA,
6771
shadow: SNA,
6872
backgroundColor: SNA,
@@ -158,7 +162,8 @@ const baseProps = {
158162
opacity: SNA,
159163
letterSpacing: SNA,
160164
flexShrink: SNA,
161-
boxShadow: SNA
165+
boxShadow: SNA,
166+
flexGrow: SNA
162167
}
163168

164169
export default baseProps

0 commit comments

Comments
 (0)