Skip to content

Commit

Permalink
docs(examples): use text VBtns instead of flat ones (#6558)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Sharshakov authored and johnleider committed Feb 21, 2019
1 parent b43c361 commit 65cabd9
Show file tree
Hide file tree
Showing 61 changed files with 171 additions and 171 deletions.
2 changes: 1 addition & 1 deletion packages/docs/src/components/core/OpenCollectiveBtn.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<v-btn
flat
text
href="https://opencollective.com/vuetify"
large
rel="noopener"
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/components/core/Snackbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
:color="computedColor"
:ripple="false"
v-bind="bind"
:flat="snackbar.color !== 'store'"
:text="snackbar.color !== 'store'"
dark
depressed
@click="onClick"
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/components/core/Versions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<v-btn
slot="activator"
class="hidden-md-and-down"
flat
text
>
<span
class="text-lowercase mr-1"
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/components/getting-started/Roadmap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
:input-value="item.value"
:ripple="false"
class="font-weight-light ma-0"
flat
text
>
<span
class="mr-2"
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/components/themes/Premium.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
<v-btn
:href="`${template.url}?ref=vuetifyjs.com`"
color="primary"
flat
text
outline
target="_blank"
rel="noopener"
Expand Down
8 changes: 4 additions & 4 deletions packages/docs/src/examples/bottom-navigation/toggle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
>
<v-card-text class="text-xs-center">
<v-btn
flat
text
color="primary"
@click="showNav = !showNav"
>
Expand All @@ -19,17 +19,17 @@
absolute
color="transparent"
>
<v-btn flat color="teal">
<v-btn text color="teal">
<span>Recents</span>
<v-icon>history</v-icon>
</v-btn>

<v-btn flat color="teal">
<v-btn text color="teal">
<span>Favorites</span>
<v-icon>favorite</v-icon>
</v-btn>

<v-btn flat color="teal">
<v-btn text color="teal">
<span>Nearby</span>
<v-icon>place</v-icon>
</v-btn>
Expand Down
6 changes: 3 additions & 3 deletions packages/docs/src/examples/bottom-navigation/usage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
>
<v-btn
color="teal"
flat
text
value="recent"
>
<span>Recent</span>
Expand All @@ -20,7 +20,7 @@

<v-btn
color="teal"
flat
text
value="favorites"
>
<span>Favorites</span>
Expand All @@ -29,7 +29,7 @@

<v-btn
color="teal"
flat
text
value="nearby"
>
<span>Nearby</span>
Expand Down
16 changes: 8 additions & 8 deletions packages/docs/src/examples/button-groups/appBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@
class="transparent"
multiple
>
<v-btn :value="1" flat>
<v-btn :value="1" text>
<v-icon>format_bold</v-icon>
</v-btn>

<v-btn :value="2" flat>
<v-btn :value="2" text>
<v-icon>format_italic</v-icon>
</v-btn>

<v-btn :value="3" flat>
<v-btn :value="3" text>
<v-icon>format_underlined</v-icon>
</v-btn>

<v-btn :value="4" flat>
<v-btn :value="4" text>
<v-icon>format_color_fill</v-icon>
</v-btn>
</v-btn-toggle>
Expand All @@ -54,19 +54,19 @@
v-model="toggle_exclusive"
class="transparent"
>
<v-btn :value="1" flat>
<v-btn :value="1" text>
<v-icon>format_align_left</v-icon>
</v-btn>

<v-btn :value="2" flat>
<v-btn :value="2" text>
<v-icon>format_align_center</v-icon>
</v-btn>

<v-btn :value="3" flat>
<v-btn :value="3" text>
<v-icon>format_align_right</v-icon>
</v-btn>

<v-btn :value="4" flat>
<v-btn :value="4" text>
<v-icon>format_align_justify</v-icon>
</v-btn>
</v-btn-toggle>
Expand Down
48 changes: 24 additions & 24 deletions packages/docs/src/examples/button-groups/usage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,104 +6,104 @@
<v-flex xs12 sm6 class="py-2">
<p>Exclusive</p>
<v-btn-toggle v-model="toggle_exclusive">
<v-btn flat>
<v-btn text>
<v-icon>format_align_left</v-icon>
</v-btn>
<v-btn flat>
<v-btn text>
<v-icon>format_align_center</v-icon>
</v-btn>
<v-btn flat>
<v-btn text>
<v-icon>format_align_right</v-icon>
</v-btn>
<v-btn flat>
<v-btn text>
<v-icon>format_align_justify</v-icon>
</v-btn>
</v-btn-toggle>
</v-flex>
<v-flex xs12 sm6 class="py-2">
<p>Multiple</p>
<v-btn-toggle v-model="toggle_multiple" multiple>
<v-btn flat>
<v-btn text>
<v-icon>format_bold</v-icon>
</v-btn>
<v-btn flat>
<v-btn text>
<v-icon>format_italic</v-icon>
</v-btn>
<v-btn flat>
<v-btn text>
<v-icon>format_underlined</v-icon>
</v-btn>
<v-btn flat>
<v-btn text>
<v-icon>format_color_fill</v-icon>
</v-btn>
</v-btn-toggle>
</v-flex>
<v-flex xs12 sm6 class="py-2">
<p>No Options Selected</p>
<v-btn-toggle v-model="toggle_none">
<v-btn flat>
<v-btn text>
<v-icon>format_align_left</v-icon>
</v-btn>
<v-btn flat>
<v-btn text>
<v-icon>format_align_center</v-icon>
</v-btn>
<v-btn flat>
<v-btn text>
<v-icon>format_align_right</v-icon>
</v-btn>
<v-btn flat>
<v-btn text>
<v-icon>format_align_justify</v-icon>
</v-btn>
</v-btn-toggle>
</v-flex>
<v-flex xs12 sm6 class="py-2">
<p>Mandatory</p>
<v-btn-toggle v-model="toggle_one" mandatory>
<v-btn flat>
<v-btn text>
<v-icon>format_align_left</v-icon>
</v-btn>
<v-btn flat>
<v-btn text>
<v-icon>format_align_center</v-icon>
</v-btn>
<v-btn flat>
<v-btn text>
<v-icon>format_align_right</v-icon>
</v-btn>
<v-btn flat>
<v-btn text>
<v-icon>format_align_justify</v-icon>
</v-btn>
</v-btn-toggle>
</v-flex>
<v-flex xs12 sm6 class="py-2">
<p>Text Options</p>
<v-btn-toggle v-model="text">
<v-btn flat value="left">
<v-btn text value="left">
Left
</v-btn>
<v-btn flat value="center">
<v-btn text value="center">
Center
</v-btn>
<v-btn flat value="right">
<v-btn text value="right">
Right
</v-btn>
<v-btn flat value="justify">
<v-btn text value="justify">
Justify
</v-btn>
</v-btn-toggle>
</v-flex>
<v-flex xs12 sm6 class="py-2">
<p>Text &amp; Icon Options</p>
<v-btn-toggle v-model="icon">
<v-btn flat value="left">
<v-btn text value="left">
<span>Left</span>
<v-icon>format_align_left</v-icon>
</v-btn>
<v-btn flat value="center">
<v-btn text value="center">
<span>Center</span>
<v-icon>format_align_center</v-icon>
</v-btn>
<v-btn flat value="right">
<v-btn text value="right">
<span>Right</span>
<v-icon>format_align_right</v-icon>
</v-btn>
<v-btn flat value="justify">
<v-btn text value="justify">
<span>Justify</span>
<v-icon>format_align_justify</v-icon>
</v-btn>
Expand Down
24 changes: 12 additions & 12 deletions packages/docs/src/examples/buttons/flat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,46 @@
<v-layout align-center>
<v-flex xs12 sm4 text-xs-center>
<div>
<v-btn flat small>Normal</v-btn>
<v-btn text small>Normal</v-btn>
</div>
<div>
<v-btn flat small color="primary">Primary</v-btn>
<v-btn text small color="primary">Primary</v-btn>
</div>
<div>
<v-btn flat small color="error">Error</v-btn>
<v-btn text small color="error">Error</v-btn>
</div>
<div>
<v-btn flat small disabled>Disabled</v-btn>
<v-btn text small disabled>Disabled</v-btn>
</div>
</v-flex>

<v-flex xs12 sm4 text-xs-center>
<div>
<v-btn flat>Normal</v-btn>
<v-btn text>Normal</v-btn>
</div>
<div>
<v-btn flat color="primary">Primary</v-btn>
<v-btn text color="primary">Primary</v-btn>
</div>
<div>
<v-btn flat color="error">Error</v-btn>
<v-btn text color="error">Error</v-btn>
</div>
<div>
<v-btn flat disabled>Disabled</v-btn>
<v-btn text disabled>Disabled</v-btn>
</div>
</v-flex>

<v-flex xs12 sm4 text-xs-center>
<div>
<v-btn flat large>Normal</v-btn>
<v-btn text large>Normal</v-btn>
</div>
<div>
<v-btn flat large color="primary">Primary</v-btn>
<v-btn text large color="primary">Primary</v-btn>
</div>
<div>
<v-btn flat large color="error">Error</v-btn>
<v-btn text large color="error">Error</v-btn>
</div>
<div>
<v-btn flat large disabled>Disabled</v-btn>
<v-btn text large disabled>Disabled</v-btn>
</div>
</v-flex>
</v-layout>
Expand Down
8 changes: 4 additions & 4 deletions packages/docs/src/examples/buttons/icon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,25 @@
</v-flex>

<v-flex xs12 sm3>
<v-btn flat icon color="pink">
<v-btn text icon color="pink">
<v-icon>favorite</v-icon>
</v-btn>
</v-flex>

<v-flex xs12 sm3>
<v-btn flat icon color="indigo">
<v-btn text icon color="indigo">
<v-icon>star</v-icon>
</v-btn>
</v-flex>

<v-flex xs12 sm3>
<v-btn flat icon color="green">
<v-btn text icon color="green">
<v-icon>cached</v-icon>
</v-btn>
</v-flex>

<v-flex xs12 sm3>
<v-btn flat icon color="deep-orange">
<v-btn text icon color="deep-orange">
<v-icon>thumb_up</v-icon>
</v-btn>
</v-flex>
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/examples/calendars/events.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</v-card-title>
<v-card-actions>
<v-btn
flat
text
color="secondary"
>
Cancel
Expand Down
Loading

0 comments on commit 65cabd9

Please sign in to comment.