Closed VincentHardouin closed 2 years ago
Hey there, awesome catch! I'll deal with that this week on the Vue 2 & Vue 3 version following the 2nd strategy you described (accessibility by default) βΊοΈ
Released as part of:
@prismicio/vue@2.1.2
for Vue 2@prismicio/vue@3.0.0-beta.4
for Vue 3Thanks for the heads up! Let us know if you encounter any more undesired behavior~ π
Thanks for your speed ! π
Hello !
I have a problem with
alt
attribute in Image component.When
alt
is not provided in Prismic, API returnsnull
andalt
attribute is not set. Otherwise, this attribute is very important for accessibility even if empty.When I look at the component, I see two options :
The first one
It consists in inverting
assign
like this :This allows overriding all fields from Prismic.
The second one
It consists in handling
alt
field.I can develop whichever suits you.