Skip to content

Commit 51b2e1d

Browse files
authored
Merge pull request #376 from Simek/@simek/feat-support-cursor-prop
feat: support `cursor` style prop
2 parents c17f269 + f74cbed commit 51b2e1d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/__tests__/simple-mappings.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ describe(`simple style mappings`, () => {
9292
[`align-bottom`, { verticalAlign: `bottom` }],
9393
[`align-middle`, { verticalAlign: `middle` }],
9494

95+
[`cursor-auto`, { cursor: `auto` }],
96+
[`cursor-pointer`, { cursor: `pointer` }],
97+
9598
[`box-border`, { boxSizing: `border-box` }],
9699
[`box-content`, { boxSizing: `content-box` }],
97100

src/styles.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ const defaultStyles: Array<[string, StyleIR]> = [
115115
[`align-bottom`, complete({ verticalAlign: `bottom` })],
116116
[`align-middle`, complete({ verticalAlign: `middle` })],
117117

118+
[`cursor-auto`, complete({ cursor: `auto` })],
119+
[`cursor-pointer`, complete({ cursor: `pointer` })],
120+
118121
[`box-border`, complete({ boxSizing: `border-box` })],
119122
[`box-content`, complete({ boxSizing: `content-box` })],
120123

0 commit comments

Comments
 (0)