Skip to content

Commit 9288fdb

Browse files
pdanpdanrstoenescu
authored andcommitted
Use round/rounded focus helper for radio/checkbox (quasarframework#2200)
1 parent 0cbfd78 commit 9288fdb

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/css/core/visibility.styl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ for type in desktop mobile cordova electron ios mat touch within-iframe platform
110110
border-radius inherit
111111
opacity .15
112112
transition background-color .3s cubic-bezier(.25, .8, .5, 1)
113+
.q-focus-helper-rounded
114+
border-radius $generic-border-radius
115+
.q-focus-helper-round
116+
border-radius 50%
113117

114118
body
115119
&.desktop

src/mixins/option.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,10 @@ export default {
100100
on: { change: this.toggle }
101101
}),
102102
this.$q.platform.is.desktop
103-
? h('div', { staticClass: 'q-focus-helper' })
103+
? h('div', {
104+
staticClass: 'q-focus-helper',
105+
'class': this.__kebabTag === 'q-radio' ? 'q-focus-helper-round' : 'q-focus-helper-rounded'
106+
})
104107
: null,
105108
this.__getContent(h)
106109
]),

0 commit comments

Comments
 (0)