Skip to content

Commit

Permalink
feat(quasar): Adjust CSS for QSelect with chips
Browse files Browse the repository at this point in the history
  • Loading branch information
pdanpdan committed Jul 9, 2019
1 parent 4352bab commit df418f8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/components/select/QSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export default Vue.extend({

computed: {
fieldClass () {
return `q-select q-field--auto-height q-select--with${this.useInput !== true ? 'out' : ''}-input`
return `q-select q-field--auto-height q-select--with${this.useInput !== true ? 'out' : ''}-input${this.useChips === true ? ' q-select--with-chips' : ''}`
},

menuClass () {
Expand Down
21 changes: 21 additions & 0 deletions ui/src/components/select/select.styl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,27 @@
.q-field__control
cursor text

&--with-chips
.q-select__input
margin 7px 0

&.q-field--labeled
.q-field__native
margin-top -6px
padding-bottom 0

&.q-field--dense
.q-chip--dense
margin 1px 4px
height 20px

.q-select__input
margin 2px 0

&.q-field--labeled
.q-field__native
margin-top 0

&__input
border 0
outline 0 !important // needed for FF
Expand Down

0 comments on commit df418f8

Please sign in to comment.