Skip to content

Commit

Permalink
fix: Add maxWidth, borderRadius, and maxHeight properties to ElementS…
Browse files Browse the repository at this point in the history
…tyle and JSX namespace
  • Loading branch information
Theryston committed Oct 10, 2024
1 parent e3008d9 commit f2a3406
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/sour-lizards-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@jsx-mail/core': patch
---

Add maxWidth, borderRadius, and maxHeight properties to ElementStyle and JSX namespace
3 changes: 3 additions & 0 deletions apps/docs/framework/style.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ type ElementStyle = {
borderBottomStyle?: string;
borderBottomWidth?: string;
borderColor?: string;
maxWidth?: string;
borderRadius?: string;
maxHeight?: string;
borderLeft?: string;
borderLeftColor?: string;
borderLeftStyle?: string;
Expand Down
3 changes: 3 additions & 0 deletions packages/core/src/jsx-runtime/get-style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ export const CSS_LIST = {
borderBottomStyle: ['*'],
borderBottomWidth: ['*'],
borderColor: ['*'],
maxWidth: ['*'],
borderRadius: ['*'],
maxHeight: ['*'],
borderLeft: ['*'],
borderLeftColor: ['*'],
borderLeftStyle: ['*'],
Expand Down
3 changes: 3 additions & 0 deletions packages/core/src/jsx-runtime/jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ declare namespace JSX {
borderBottomStyle?: string;
borderBottomWidth?: string;
borderColor?: string;
maxWidth?: string;
borderRadius?: string;
maxHeight?: string;
borderLeft?: string;
borderLeftColor?: string;
borderLeftStyle?: string;
Expand Down

0 comments on commit f2a3406

Please sign in to comment.