ghost styles for poll form
This commit is contained in:
parent
c6d4c20982
commit
5d3bf43fdc
3 changed files with 33 additions and 33 deletions
21
src/components/select/select.js
Normal file
21
src/components/select/select.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
import { library } from '@fortawesome/fontawesome-svg-core'
|
||||
import {
|
||||
faChevronDown
|
||||
} from '@fortawesome/free-solid-svg-icons'
|
||||
|
||||
library.add(
|
||||
faChevronDown
|
||||
)
|
||||
|
||||
export default {
|
||||
model: {
|
||||
prop: 'value',
|
||||
event: 'change'
|
||||
},
|
||||
props: [
|
||||
'value',
|
||||
'disabled',
|
||||
'unstyled',
|
||||
'kind'
|
||||
]
|
||||
}
|
|
@ -2,7 +2,7 @@
|
|||
<template>
|
||||
<label
|
||||
class="Select input"
|
||||
:class="{ disabled }"
|
||||
:class="[ kindClass, { disabled } ]"
|
||||
>
|
||||
<select
|
||||
:disabled="disabled"
|
||||
|
@ -18,26 +18,7 @@
|
|||
</label>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { library } from '@fortawesome/fontawesome-svg-core'
|
||||
import {
|
||||
faChevronDown
|
||||
} from '@fortawesome/free-solid-svg-icons'
|
||||
|
||||
library.add(
|
||||
faChevronDown
|
||||
)
|
||||
export default {
|
||||
model: {
|
||||
prop: 'value',
|
||||
event: 'change'
|
||||
},
|
||||
props: [
|
||||
'value',
|
||||
'disabled'
|
||||
]
|
||||
}
|
||||
</script>
|
||||
<script src="./select.js"> </script>
|
||||
|
||||
<style lang="scss">
|
||||
@import '../../_variables.scss';
|
||||
|
@ -45,6 +26,14 @@ export default {
|
|||
.Select {
|
||||
padding: 0;
|
||||
|
||||
/* Overriding input styles, probably should make proper Input component? */
|
||||
&.-kind_ghost {
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
background-color: transparent;
|
||||
padding-right: 0.75em;
|
||||
}
|
||||
|
||||
select {
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue