Skip to content

Commit

Permalink
feat: add aspectRatio, textIndent property
Browse files Browse the repository at this point in the history
  • Loading branch information
hirotomoyamada committed Jun 11, 2023
1 parent e8c4cae commit 9c16c53
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/tame-worms-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@yamada-ui/core': patch
---

Added aspectRatio, textIndent property.
2 changes: 2 additions & 0 deletions packages/core/src/styles/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const layout: Configs = {
overscrollBehaviorX: true,
overscrollBehaviorY: true,
display: true,
aspectRatio: true,
verticalAlign: true,
boxSizing: true,
boxDecorationBreak: true,
Expand Down Expand Up @@ -83,4 +84,5 @@ export type LayoutProps<Y = 'responsive', M = 'colorMode'> = {
overscrollY?: Token<CSS.Property.OverscrollBehaviorY, unknown, Y, M>
visibility?: Token<CSS.Property.Visibility, unknown, Y, M>
isolation?: Token<CSS.Property.Isolation, unknown, Y, M>
aspectRatio?: Token<CSS.Property.AspectRatio, unknown, Y, M>
}
2 changes: 2 additions & 0 deletions packages/core/src/styles/typography.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const typography: Configs = {
letterSpacing: configs.prop('letterSpacing', 'letterSpacings'),
textAlign: true,
fontStyle: true,
textIndent: true,
wordBreak: true,
overflowWrap: true,
textOverflow: true,
Expand Down Expand Up @@ -47,6 +48,7 @@ export type TypographyProps<Y = 'responsive', M = 'colorMode'> = {
fontFamily?: Token<CSS.Property.FontFamily, 'fonts', Y, M>
textAlign?: Token<CSS.Property.TextAlign, unknown, Y, M>
fontStyle?: Token<CSS.Property.FontStyle, unknown, Y, M>
textIndent?: Token<CSS.Property.TextIndent, unknown, Y, M>
wordBreak?: Token<CSS.Property.WordBreak, unknown, Y, M>
overflowWrap?: Token<CSS.Property.OverflowWrap, unknown, Y, M>
textOverflow?: Token<CSS.Property.TextOverflow, unknown, Y, M>
Expand Down

0 comments on commit 9c16c53

Please sign in to comment.