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

create Button as web component #9

Draft
wants to merge 4 commits into
base: feature/storybook-setup
Choose a base branch
from

Conversation

alexandfox
Copy link

@alexandfox alexandfox commented Jun 15, 2023

  1. Web component is created using shadow DOM
  2. Shadow DOM component “observes” defined attributes
  3. When attributes change, component re-renders the HTML element in the shadow DOM
  4. CSS styles are defined inside a shadow root and do not leak out
  5. Component is “exported” as a custom element definition, so that when element is called w/ attributes, this component is created and attached to the shadow DOM

NOT CAPTURED in this PR

  • actual styles as would be used in CDS
  • actual story variation as would be used in CDS
  • comprehensive style set with the component

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.

1 participant