diff --git a/ui/src/components/color/QColor.js b/ui/src/components/color/QColor.js index 458cf550659..5e0631f4e16 100644 --- a/ui/src/components/color/QColor.js +++ b/ui/src/components/color/QColor.js @@ -176,15 +176,11 @@ export default createComponent({ + (isDark.value === true ? ' q-color-picker--dark q-dark' : '') ) - const attributes = computed(() => { - if (props.disable === true) { - return { 'aria-disabled': 'true' } - } - if (props.readonly === true) { - return { 'aria-readonly': 'true' } - } - return {} - }) + const attributes = computed(() => ( + props.disable === true + ? { 'aria-disabled': 'true' } + : {} + )) const spectrumDirective = computed(() => { // if editable.value === true diff --git a/ui/src/components/date/QDate.js b/ui/src/components/date/QDate.js index 82158da950d..3b4fbef88fa 100644 --- a/ui/src/components/date/QDate.js +++ b/ui/src/components/date/QDate.js @@ -694,7 +694,7 @@ export default createComponent({ const attributes = computed(() => ( props.disable === true ? { 'aria-disabled': 'true' } - : (props.readonly === true ? { 'aria-readonly': 'true' } : {}) + : {} )) watch(() => props.modelValue, v => { diff --git a/ui/src/components/editor/QEditor.js b/ui/src/components/editor/QEditor.js index 66ea981e113..c819ceba7cf 100644 --- a/ui/src/components/editor/QEditor.js +++ b/ui/src/components/editor/QEditor.js @@ -323,7 +323,7 @@ export default createComponent({ const attributes = computed(() => ( props.disable === true ? { 'aria-disabled': 'true' } - : (props.readonly === true ? { 'aria-readonly': 'true' } : {}) + : {} )) function onInput () { diff --git a/ui/src/composables/private/use-field.js b/ui/src/composables/private/use-field.js index 98b0828fe2b..60d13e05cc8 100644 --- a/ui/src/composables/private/use-field.js +++ b/ui/src/composables/private/use-field.js @@ -259,9 +259,6 @@ export default function (state) { if (props.disable === true) { acc[ 'aria-disabled' ] = 'true' } - else if (props.readonly === true) { - acc[ 'aria-readonly' ] = 'true' - } return acc })