Skip to content

Commit

Permalink
support tw vertical align utilities (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
menghany authored Mar 6, 2024
1 parent bcc8ae4 commit 9c7f6d5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/__tests__/simple-mappings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ describe(`simple style mappings`, () => {
[`capitalize`, { textTransform: `capitalize` }],
[`normal-case`, { textTransform: `none` }],

[`align-auto`, { verticalAlign: `auto` }],
[`align-top`, { verticalAlign: `top` }],
[`align-bottom`, { verticalAlign: `bottom` }],
[`align-middle`, { verticalAlign: `middle` }],

// default box-shadow implementations
[
`shadow-sm`,
Expand Down
5 changes: 5 additions & 0 deletions src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ const defaultStyles: Array<[string, StyleIR]> = [
[`basis-auto`, complete({ flexBasis: `auto` })],
[`flex-basis-auto`, complete({ flexBasis: `auto` })],

[`align-auto`, complete({ verticalAlign: `auto` })],
[`align-top`, complete({ verticalAlign: `top` })],
[`align-bottom`, complete({ verticalAlign: `bottom` })],
[`align-middle`, complete({ verticalAlign: `middle` })],

// default box-shadow implementations
[
`shadow-sm`,
Expand Down

0 comments on commit 9c7f6d5

Please sign in to comment.