Skip to content

Commit

Permalink
fix(comp:button): remove height for text and link mode (#1282)
Browse files Browse the repository at this point in the history
  • Loading branch information
danranVm committed Nov 16, 2022
1 parent 36411e2 commit d4653bb
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/components/button/demo/Danger.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<IxSpace>
<IxSpace align="center">
<IxButton mode="primary" danger>Primary</IxButton>
<IxButton danger>Default</IxButton>
<IxButton mode="dashed" danger>Dashed</IxButton>
Expand Down
2 changes: 1 addition & 1 deletion packages/components/button/demo/Disabled.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<IxSpace>
<IxSpace align="center">
<IxButton mode="primary" disabled>Primary</IxButton>
<IxButton disabled>Default</IxButton>
<IxButton mode="dashed" disabled>Dashed</IxButton>
Expand Down
2 changes: 1 addition & 1 deletion packages/components/button/demo/Loding.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<IxSpace>
<IxSpace align="center">
<IxButton mode="primary" icon="search" loading>Primary</IxButton>
<IxButton icon="search" loading>Default</IxButton>
<IxButton mode="dashed" loading>Dashed</IxButton>
Expand Down
2 changes: 1 addition & 1 deletion packages/components/button/demo/Mode.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<IxSpace>
<IxSpace align="center">
<IxButton mode="primary">Primary</IxButton>
<IxButton>Default</IxButton>
<IxButton mode="dashed">Dashed</IxButton>
Expand Down
2 changes: 1 addition & 1 deletion packages/components/button/demo/Size.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<IxSpace vertical>
<IxRadioGroup v-model:value="size" :dataSource="sizeData" />
<IxSpace>
<IxSpace align="center">
<IxButton mode="primary" :size="size">Primary</IxButton>
<IxButton :size="size">Default</IxButton>
<IxButton mode="dashed" :size="size">Dashed</IxButton>
Expand Down
1 change: 1 addition & 0 deletions packages/components/button/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
border-color: transparent;
padding: 0;
min-width: auto;
height: auto;

&:focus,
&:hover {
Expand Down

0 comments on commit d4653bb

Please sign in to comment.