mirror of
https://github.com/iconify/iconify.git
synced 2024-11-09 23:00:56 +00:00
Test @click event in Vue 3 component demo
This commit is contained in:
parent
3b6b12288d
commit
d498b0e1e9
@ -10,12 +10,12 @@
|
||||
<Checkbox
|
||||
:checked="true"
|
||||
text="Checkbox example"
|
||||
hint="(click to toggle)"
|
||||
hint="(click icon to toggle)"
|
||||
/>
|
||||
<Checkbox
|
||||
:checked="false"
|
||||
text="Another checkbox example"
|
||||
hint="(click to toggle)"
|
||||
hint="(only clicking icon works to test @click events)"
|
||||
/>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<div class="checkbox-container">
|
||||
<a href="# " :class="className" @click="check">
|
||||
<Icon :icon="icon" />{{ text }}
|
||||
</a>
|
||||
<span :class="className">
|
||||
<Icon :icon="icon" @click="check" />{{ text }}
|
||||
</span>
|
||||
<small>{{ hint }}</small>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -68,23 +68,28 @@ p {
|
||||
}
|
||||
|
||||
.checkbox {
|
||||
cursor: pointer;
|
||||
/* cursor: pointer; */
|
||||
/* color: #1769aa; */
|
||||
color: #626262;
|
||||
text-decoration: none;
|
||||
}
|
||||
.checkbox:hover {
|
||||
/* .checkbox:hover {
|
||||
color: #ba3329;
|
||||
text-decoration: underline;
|
||||
}
|
||||
} */
|
||||
|
||||
.checkbox svg {
|
||||
cursor: pointer;
|
||||
margin-right: 4px;
|
||||
color: #afafaf;
|
||||
font-size: 24px;
|
||||
line-height: 1em;
|
||||
vertical-align: -0.25em;
|
||||
}
|
||||
.checkbox svg:hover {
|
||||
color: #ba3329;
|
||||
}
|
||||
|
||||
.checkbox--checked svg {
|
||||
color: #327335;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user