Skip to content

Commit 4565d9c

Browse files
pdanpdanrstoenescu
authored andcommitted
fix(QBtn): Fix button alignment for type="a" quasarframework#5645 (quasarframework#5647)
1 parent 0de50cc commit 4565d9c

File tree

3 files changed

+43
-2
lines changed

3 files changed

+43
-2
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<template>
2+
<div class="q-layout-padding">
3+
<div class="row no-wrap q-col-gutter-x-md">
4+
<div v-for="type in ['a', 'button']" :key="type" class="col q-gutter-y-md">
5+
<div v-for="(prop, i) in props" :key="i" class="q-gutter-y-md">
6+
<div class="row q-gutter-md items-center">
7+
<q-btn :type="type" v-bind="prop" round icon="clear" color="primary" />
8+
<q-btn :type="type" v-bind="prop" icon="clear" color="primary" />
9+
<q-btn :type="type" v-bind="prop" icon="clear" color="primary" style="max-width: 0; min-height: 0" />
10+
<q-btn :type="type" v-bind="prop" icon="clear" label="Label" color="primary" />
11+
<q-btn :type="type" v-bind="prop" label="Label" color="primary" />
12+
<q-btn :type="type" v-bind="prop" size="sm" no-caps label="Label" color="primary" />
13+
</div>
14+
<q-btn :type="type" v-bind="prop" icon="clear" label="Label" color="primary" class="full-width" />
15+
<q-btn :type="type" v-bind="prop" icon="clear" label="Label" color="primary" class="full-width" align="left" />
16+
<q-btn :type="type" v-bind="prop" icon="clear" label="Label" color="primary" class="full-width" align="right" />
17+
<q-btn :type="type" v-bind="prop" icon-right="clear" label="Label" color="primary" class="full-width" />
18+
<q-btn :type="type" v-bind="prop" icon-right="clear" label="Label" color="primary" class="full-width" align="left" />
19+
<q-btn :type="type" v-bind="prop" icon-right="clear" label="Label" color="primary" class="full-width" align="right" />
20+
<q-btn :type="type" v-bind="prop" label="Label" color="primary" class="full-width" />
21+
<q-btn :type="type" v-bind="prop" label="Label" color="primary" class="full-width" align="left" />
22+
<q-btn :type="type" v-bind="prop" label="Label" color="primary" class="full-width" align="right" />
23+
</div>
24+
</div>
25+
</div>
26+
</div>
27+
</template>
28+
29+
<script>
30+
export default {
31+
data () {
32+
return {
33+
props: [
34+
{},
35+
{ outline: true },
36+
{ unelevated: true },
37+
{ push: true },
38+
{ flat: true }
39+
]
40+
}
41+
}
42+
}
43+
</script>

ui/src/components/btn/QBtn.sass

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
@at-root #{selector-unify('a', &)}
2222
display: inline-flex
2323
flex-direction: column
24-
align-items: center
2524

2625
.q-icon, .q-spinner
2726
font-size: $button-line-height

ui/src/components/btn/QBtn.styl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
a&
2121
display inline-flex
2222
flex-direction column
23-
align-items center
2423

2524
.q-icon, .q-spinner
2625
font-size $button-line-height

0 commit comments

Comments
 (0)