Skip to content
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

[Feature] Dynamic header size for a11y #625

Open
2 tasks done
devtobi opened this issue Dec 6, 2024 · 0 comments
Open
2 tasks done

[Feature] Dynamic header size for a11y #625

devtobi opened this issue Dec 6, 2024 · 0 comments
Labels
Priority: Low The issue contains work with low priority. Template: Webcomponent Issues regarding the webcomponent template. Type: Feature The issue is an feature

Comments

@devtobi
Copy link
Member

devtobi commented Dec 6, 2024

Relevant template

refarch-webcomponent

Problem description (optional)

Because WebComponents can be inserted in any apps, we need to not only make sure the webcomponent itself has a consistent heading structure but also that in integrates consistently into the heading structure of the surrounding app.
Because we don't know that beforehand, we should include the feature to set the root level heading of the component and then dynamically set all the other heading tags used inside the implementation of the webcomponent itself.
This way we can achieve a consistent heading hierarchy.

Desired solution

Add a property heading-root to the webcomponent and provide a dynamic heading component which makes use of this attribute.

Considered alternatives (optional)

No response

Additional context (optional)

See https://github.com/it-at-m/digiwf-core/tree/dev/digiwf-apps/packages/apps/digiwf-webcomponent as a reference.

No duplicate

  • I confirm that this issue is not a duplicate

Code of Conduct

  • I agree to follow this project's Code of Conduct
@devtobi devtobi added Template: Webcomponent Issues regarding the webcomponent template. Type: Feature The issue is an feature Priority: Low The issue contains work with low priority. labels Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Low The issue contains work with low priority. Template: Webcomponent Issues regarding the webcomponent template. Type: Feature The issue is an feature
Projects
Development

No branches or pull requests

1 participant