Skip to content

Commit

Permalink
fix: resize plugin use correct CSS values
Browse files Browse the repository at this point in the history
  • Loading branch information
sastan committed May 11, 2021
1 parent 8a61788 commit 99db216
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@
"appearance-menulist-button": ".appearance-menulist-button{appearance:menulist-button}",
"outline-none": ".outline-none{outline:2px solid transparent;outline-offset:2px}",
"resize": ".resize{resize:both}",
"resize-x": ".resize-x{resize:vertical}",
"resize-y": ".resize-y{resize:horizontal}",
"resize-x": ".resize-x{resize:horizontal}",
"resize-y": ".resize-y{resize:vertical}",
"resize-none": ".resize-none{resize:none}",
"fill-current": ".fill-current{fill:currentColor}",
"stroke-current": ".stroke-current{stroke:currentColor}",
Expand Down
2 changes: 1 addition & 1 deletion src/twind/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ export const corePlugins: Record<string, Plugin | undefined> = {

resize: (params) => ({
resize:
({ x: 'vertical', y: 'horizontal' } as Record<string, string | undefined>)[params[0]] ||
({ x: 'horizontal', y: 'vertical' } as Record<string, string | undefined>)[params[0]] ||
params[0] ||
'both',
}),
Expand Down

0 comments on commit 99db216

Please sign in to comment.