Skip to content

Commit

Permalink
fix size of buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
elevatebart committed Apr 23, 2024
1 parent 29703c4 commit 66f9a90
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
12 changes: 9 additions & 3 deletions components/Button/ReadMe.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
<script lang="ts" setup>
import Button from '@cypress-design/vue-button'
import { IconActionPlayLarge } from '@cypress-design/vue-icon'
</script>

# Button

<DemoWrapper>
<Button>
Submit Form
</Button>
<div class="flex gap-4 items-center">
<Button>
Submit Form
</Button>
<Button square>
<IconActionPlayLarge fill-color="indigo-400" alt="Play"/>
</Button>
</div>
</DemoWrapper>

A user clicking on the "Button" component triggers an action or event, such as submitting a form, opening a dialog, canceling an action, or performing a delete operation.
Expand Down
20 changes: 10 additions & 10 deletions components/Button/constants/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const VariantClassesTable = {
export const DefaultVariant: keyof typeof VariantClassesTable = 'indigo-dark'

export const SizeClassesTable = {
'20': 'text-[14px] leading-[20px] min-h-[20px]',
'20': 'text-[14px] leading-[18px] min-h-[20px]',
'24': 'text-[14px] leading-[20px] min-h-[24px]',
'32': 'text-[14px] leading-[20px] min-h-[32px]',
'40': 'text-[16px] leading-[24px] min-h-[40px]',
Expand All @@ -50,23 +50,23 @@ export const SizeClassesTable = {
export const SizeClassesTableSquare = {
'20': {
wide: 'px-[4px] py-0',
square: 'h-[22px] w-[22px] flex items-center justify-center',
square: 'h-[20px] w-[20px] flex items-center justify-center',
},
'24': {
wide: 'px-[8px] py-[2px]',
square: 'h-[26px] w-[26px] flex items-center justify-center',
wide: 'px-[8px] py-[1px]',
square: 'h-[24px] w-[24px] flex items-center justify-center',
},
'32': {
wide: 'px-[12px] py-[6px]',
square: 'h-[34px] w-[34px] flex items-center justify-center',
wide: 'px-[12px] py-[5px]',
square: 'h-[32px] w-[32px] flex items-center justify-center',
},
'40': {
wide: 'px-[16px] py-[8px]',
square: 'h-[42px] w-[42px] flex items-center justify-center',
wide: 'px-[16px] py-[7px]',
square: 'h-[40px] w-[40px] flex items-center justify-center',
},
'48': {
wide: 'px-[20px] py-[12px]',
square: 'h-[50px] w-[50px] flex items-center justify-center',
wide: 'px-[20px] py-[11px]',
square: 'h-[48px] w-[48px] flex items-center justify-center',
},
} as const

Expand Down

0 comments on commit 66f9a90

Please sign in to comment.