-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* #3209: fix VaButtonGroup component gradient * #3209: update VaButtonGroup examples * #3209: minor styling * #3209: review suggestions
- Loading branch information
1 parent
8d28c7b
commit 9e12d8b
Showing
6 changed files
with
135 additions
and
155 deletions.
There are no files selected for viewing
41 changes: 17 additions & 24 deletions
41
packages/docs/page-config/ui-elements/button-group/examples/Colors.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,21 @@ | ||
<template> | ||
<va-button-group | ||
color="danger" | ||
class="mb-6" | ||
> | ||
<va-button>One</va-button> | ||
<va-button>Two</va-button> | ||
<va-button>Three</va-button> | ||
</va-button-group> | ||
<div class="flex flex-wrap gap-6 mb-6"> | ||
<va-button-group color="danger"> | ||
<va-button>One</va-button> | ||
<va-button>Two</va-button> | ||
<va-button>Three</va-button> | ||
</va-button-group> | ||
|
||
<va-button-group | ||
color="warning" | ||
class="mb-6" | ||
> | ||
<va-button>One</va-button> | ||
<va-button>Two</va-button> | ||
<va-button>Three</va-button> | ||
</va-button-group> | ||
<va-button-group color="info"> | ||
<va-button>One</va-button> | ||
<va-button>Two</va-button> | ||
<va-button>Three</va-button> | ||
</va-button-group> | ||
|
||
<va-button-group | ||
color="success" | ||
class="mb-6" | ||
> | ||
<va-button>One</va-button> | ||
<va-button>Two</va-button> | ||
<va-button>Three</va-button> | ||
</va-button-group> | ||
<va-button-group color="#FFD166"> | ||
<va-button>One</va-button> | ||
<va-button>Two</va-button> | ||
<va-button>Three</va-button> | ||
</va-button-group> | ||
</div> | ||
</template> |
53 changes: 26 additions & 27 deletions
53
packages/docs/page-config/ui-elements/button-group/examples/Gradient.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,30 @@ | ||
<template> | ||
<va-button-group | ||
gradient | ||
color="danger" | ||
class="mb-6" | ||
> | ||
<va-button>One</va-button> | ||
<va-button>Two</va-button> | ||
<va-button>Three</va-button> | ||
</va-button-group> | ||
<div class="flex flex-wrap gap-6 mb-6"> | ||
<va-button-group | ||
gradient | ||
color="danger" | ||
> | ||
<va-button>One</va-button> | ||
<va-button>Two</va-button> | ||
<va-button>Three</va-button> | ||
</va-button-group> | ||
|
||
<va-button-group | ||
gradient | ||
color="warning" | ||
class="mb-6" | ||
> | ||
<va-button>One</va-button> | ||
<va-button>Two</va-button> | ||
<va-button>Three</va-button> | ||
</va-button-group> | ||
<va-button-group | ||
gradient | ||
color="info" | ||
> | ||
<va-button>One</va-button> | ||
<va-button>Two</va-button> | ||
<va-button>Three</va-button> | ||
</va-button-group> | ||
|
||
<va-button-group | ||
gradient | ||
color="success" | ||
class="mb-6" | ||
> | ||
<va-button>One</va-button> | ||
<va-button>Two</va-button> | ||
<va-button>Three</va-button> | ||
</va-button-group> | ||
<va-button-group | ||
gradient | ||
color="#FFD166" | ||
> | ||
<va-button>One</va-button> | ||
<va-button>Two</va-button> | ||
<va-button>Three</va-button> | ||
</va-button-group> | ||
</div> | ||
</template> |
37 changes: 12 additions & 25 deletions
37
packages/docs/page-config/ui-elements/button-group/examples/Icons.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,15 @@ | ||
<template> | ||
<va-button-group class="mb-6"> | ||
<va-button icon="create" /> | ||
<va-button icon="add" /> | ||
<va-button icon="add_circle_outline" /> | ||
</va-button-group> | ||
<div class="flex flex-wrap gap-6 mb-6"> | ||
<va-button-group> | ||
<va-button icon="create" /> | ||
<va-button icon="add" /> | ||
<va-button icon="add_circle_outline" /> | ||
</va-button-group> | ||
|
||
<va-button-group | ||
icon-color="danger" | ||
class="mb-6" | ||
> | ||
<va-button icon="create" /> | ||
<va-button icon="add" /> | ||
<va-button icon="add_circle_outline" /> | ||
</va-button-group> | ||
|
||
<va-button-group icon-color="warning"> | ||
<va-button icon="create"> | ||
One | ||
</va-button> | ||
<va-button icon="add"> | ||
Two | ||
</va-button> | ||
<va-button icon="add_circle_outline"> | ||
Three | ||
</va-button> | ||
</va-button-group> | ||
<va-button-group icon-color="warning"> | ||
<va-button icon="create">One</va-button> | ||
<va-button icon="add">Two</va-button> | ||
<va-button icon="add_circle_outline">Three</va-button> | ||
</va-button-group> | ||
</div> | ||
</template> |
28 changes: 12 additions & 16 deletions
28
packages/docs/page-config/ui-elements/button-group/examples/Sizes.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
<template> | ||
<va-button-group | ||
class="mb-6" | ||
size="large" | ||
> | ||
<va-button>L1</va-button> | ||
<va-button>L2</va-button> | ||
<va-button>L3</va-button> | ||
</va-button-group> | ||
<div class="flex flex-wrap items-center gap-6 mb-6"> | ||
<va-button-group size="large"> | ||
<va-button>L1</va-button> | ||
<va-button>L2</va-button> | ||
<va-button>L3</va-button> | ||
</va-button-group> | ||
|
||
<va-button-group | ||
class="mb-6" | ||
size="small" | ||
> | ||
<va-button>One</va-button> | ||
<va-button>Two</va-button> | ||
<va-button>Three</va-button> | ||
</va-button-group> | ||
<va-button-group size="small"> | ||
<va-button>One</va-button> | ||
<va-button>Two</va-button> | ||
<va-button>Three</va-button> | ||
</va-button-group> | ||
</div> | ||
</template> |
98 changes: 44 additions & 54 deletions
98
packages/docs/page-config/ui-elements/button-group/examples/Styles.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,52 @@ | ||
<template> | ||
<va-button-group class="mb-6"> | ||
<va-button>One</va-button> | ||
<va-button>Two</va-button> | ||
<va-button>Three</va-button> | ||
</va-button-group> | ||
<div class="flex flex-wrap gap-6 mb-6"> | ||
<va-button-group> | ||
<va-button>One</va-button> | ||
<va-button>Two</va-button> | ||
<va-button>Three</va-button> | ||
</va-button-group> | ||
|
||
<va-button-group | ||
preset="primary" | ||
class="mb-6" | ||
> | ||
<va-button>One</va-button> | ||
<va-button>Two</va-button> | ||
<va-button>Three</va-button> | ||
</va-button-group> | ||
<va-button-group preset="primary"> | ||
<va-button>One</va-button> | ||
<va-button>Two</va-button> | ||
<va-button>Three</va-button> | ||
</va-button-group> | ||
|
||
<va-button-group | ||
preset="secondary" | ||
class="mb-6" | ||
> | ||
<va-button>One</va-button> | ||
<va-button>Two</va-button> | ||
<va-button>Three</va-button> | ||
</va-button-group> | ||
<va-button-group preset="secondary"> | ||
<va-button>One</va-button> | ||
<va-button>Two</va-button> | ||
<va-button>Three</va-button> | ||
</va-button-group> | ||
</div> | ||
|
||
<va-button-group | ||
preset="plain" | ||
class="mb-6" | ||
> | ||
<va-button>One</va-button> | ||
<va-button>Two</va-button> | ||
<va-button>Three</va-button> | ||
</va-button-group> | ||
<div class="flex flex-wrap gap-6 mb-6"> | ||
<va-button-group preset="plain"> | ||
<va-button>One</va-button> | ||
<va-button>Two</va-button> | ||
<va-button>Three</va-button> | ||
</va-button-group> | ||
|
||
<va-button-group | ||
preset="plainOpacity" | ||
class="mb-6" | ||
> | ||
<va-button>One</va-button> | ||
<va-button>Two</va-button> | ||
<va-button>Three</va-button> | ||
</va-button-group> | ||
<va-button-group preset="plainOpacity"> | ||
<va-button>One</va-button> | ||
<va-button>Two</va-button> | ||
<va-button>Three</va-button> | ||
</va-button-group> | ||
</div> | ||
|
||
<va-button-group | ||
preset="secondary" | ||
border-color="primary" | ||
class="mb-6" | ||
> | ||
<va-button>One</va-button> | ||
<va-button>Two</va-button> | ||
<va-button>Three</va-button> | ||
</va-button-group> | ||
<div class="flex flex-wrap gap-6 mb-6"> | ||
<va-button-group | ||
preset="secondary" | ||
border-color="primary" | ||
> | ||
<va-button>One</va-button> | ||
<va-button>Two</va-button> | ||
<va-button>Three</va-button> | ||
</va-button-group> | ||
|
||
<va-button-group | ||
round | ||
class="mb-6" | ||
> | ||
<va-button>One</va-button> | ||
<va-button>Two</va-button> | ||
<va-button>Three</va-button> | ||
</va-button-group> | ||
<va-button-group round> | ||
<va-button>One</va-button> | ||
<va-button>Two</va-button> | ||
<va-button>Three</va-button> | ||
</va-button-group> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters