fix(ui) : cursor-default readonly TextArea + test chevron readonly Autocomplete

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-03 15:24:28 +02:00
parent e622380916
commit 26c0a8b533
2 changed files with 2 additions and 1 deletions
@@ -536,5 +536,6 @@ describe('MalioInputAutocomplete', () => {
const wrapper = mountComponent({label: 'Champ', readonly: true, modelValue: 'fr', options, iconName: 'mdi:magnify', iconPosition: 'left'}) const wrapper = mountComponent({label: 'Champ', readonly: true, modelValue: 'fr', options, iconName: 'mdi:magnify', iconPosition: 'left'})
expect(wrapper.get('label').classes()).toContain('text-black') expect(wrapper.get('label').classes()).toContain('text-black')
expect(wrapper.get('[data-test="icon-left"]').classes()).toContain('text-black') expect(wrapper.get('[data-test="icon-left"]').classes()).toContain('text-black')
expect(wrapper.get('[data-test="chevron"]').classes()).toContain('text-black')
}) })
}) })
+1 -1
View File
@@ -9,7 +9,7 @@
class="floating-input peer w-full border bg-white pl-3 pr-3 py-1 outline-none placeholder:text-transparent overflow-auto" class="floating-input peer w-full border bg-white pl-3 pr-3 py-1 outline-none placeholder:text-transparent overflow-auto"
:class="[ :class="[
isReadonly ? 'border-black' : (isFilled ? 'border-black' : 'border-m-muted'), isReadonly ? 'border-black' : (isFilled ? 'border-black' : 'border-m-muted'),
disabled ? 'cursor-not-allowed text-black/60 border-m-muted' : 'cursor-text', disabled ? 'cursor-not-allowed text-black/60 border-m-muted' : (isReadonly ? 'cursor-default' : 'cursor-text'),
hasError hasError
? 'border-m-danger focus:border-m-danger' ? 'border-m-danger focus:border-m-danger'
: hasSuccess : hasSuccess