Content-Length: 379475 | pFad | http://github.com/material-vue/material-vue/commit/c0fb01db002bb8cbc8843d816620533b4c9712c5

2A fix: tw prefixes update · material-vue/material-vue@c0fb01d · GitHub
Skip to content

Commit c0fb01d

Browse files
author
Корпусов Максим
committed
fix: tw prefixes update
1 parent f9688fd commit c0fb01d

File tree

1 file changed

+22
-13
lines changed

1 file changed

+22
-13
lines changed

lib/src/components/MButton/MButton.vue

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,34 @@
22
<component
33
:is="element"
44
:href="href"
5-
class="inline-flex !no-underline select-none justify-center items-center gap-2 py-2.5 relative overflow-hidden rounded-full"
5+
class="mv-inline-flex !mv-no-underline mv-select-none mv-justify-center mv-items-center mv-gap-2 mv-py-2.5 mv-relative mv-overflow-hidden mv-rounded-full"
66
:class="[
77
paddingX,
88
{
9-
'border-solid border !border-[--md-sys-color-outline]':
9+
'mv-border-solid mv-border !mv-border-[--md-sys-color-outline]':
1010
variant === 'outlined',
11-
'pointer-events-none': disabled,
11+
'mv-pointer-events-none': disabled,
1212
},
1313
]"
1414
:style="[textColor, backgroundColor]"
1515
>
16-
<MStateLayer :background="stateBackground" :disabled="disabled" />
16+
<MStateLayer
17+
:background="stateBackground"
18+
:disabled="disabled"
19+
@click="$emit('click')"
20+
/>
1721
<span
1822
v-if="prependIcon"
19-
class="material-symbols-rounded text-[18px]"
23+
class="material-symbols-rounded mv-text-[18px]"
2024
v-text="prependIcon"
2125
/>
22-
<span class="label-large lowercase first-letter:uppercase" v-text="text" />
26+
<span
27+
class="label-large mv-lowercase first-letter:mv-uppercase"
28+
v-text="text"
29+
/>
2330
<span
2431
v-if="appendIcon"
25-
class="material-symbols-rounded text-[18px]"
32+
class="material-symbols-rounded mv-text-[18px]"
2633
v-text="appendIcon"
2734
/>
2835
</component>
@@ -56,21 +63,23 @@ const props = defineProps({
5663
},
5764
})
5865
66+
defineEmits(['click'])
67+
5968
const element = computed(() => {
6069
return h(props.href ? 'a' : 'button', {})
6170
})
6271
6372
const paddingX = computed(() => {
6473
if (props.variant === 'text' && props.icon == null)
6574
return (
66-
'px-3 ' +
67-
(props.prependIcon ? 'pr-4 ' : '') +
68-
(props.appendIcon ? 'pl-4' : '')
75+
'mv-px-3 ' +
76+
(props.prependIcon ? 'mv-pr-4 ' : '') +
77+
(props.appendIcon ? 'mv-pl-4' : '')
6978
)
7079
return (
71-
'px-6 ' +
72-
(props.prependIcon ? 'pl-4 ' : '') +
73-
(props.appendIcon ? 'pr-4' : '')
80+
'mv-px-6 ' +
81+
(props.prependIcon ? 'mv-pl-4 ' : '') +
82+
(props.appendIcon ? 'mv-pr-4' : '')
7483
)
7584
})
7685

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/material-vue/material-vue/commit/c0fb01db002bb8cbc8843d816620533b4c9712c5

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy