Skip to content

DX improvements #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: vue3
Choose a base branch
from
Open

DX improvements #4

wants to merge 3 commits into from

Conversation

strebl
Copy link
Member

@strebl strebl commented Oct 16, 2024

i18n

Dieser PR beinhaltet Alt Text Support für i18n Assets. Die Erweiterung geht davon aus, dass das Asset alt_{langcode} Properties hat. Also z.B. alt_de und alt_fr. Fallback ist weiterhin alt.

Optional src Attribute

Eine weitere Anpassung ist, dass das src Attribut nicht mehr required ist. Dadurch verschwinden einige Warnungen, wenn das Asset null ist.

@strebl strebl changed the base branch from main to vue3 October 18, 2024 15:49
Currently a null alt text from Statamic is rendered as <img ... alt
...>. This makes it so that the alt attribute is only set if the alt
text contains actual content.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants