Skip to content

Commit

Permalink
docs: update docs about web components - we do not use ShadowDOM, so …
Browse files Browse the repository at this point in the history
…Eufemia web components do not have that trade offs
  • Loading branch information
tujoworker committed Sep 28, 2019
1 parent 8c6f63b commit 1a15682
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@ import ComponentBox from 'Tags/ComponentBox'

So called [Custom Elements](https://www.w3.org/TR/custom-elements/), running as a [Web Component](https://github.com/w3c/webcomponents/) can be used to run the `dnb-ui-lib` components in all other frameworks like Dojo.

## Web Components and their negative trade offs

The usage of the UMD version in combination with Web Components is **not recommended** because:

- Accessibility and screen reader support due to ID referencing
- Lack of native HTML support, like submit inside a form
- Will involve too much imperative code

## Example usage

```jsx
Expand Down

0 comments on commit 1a15682

Please sign in to comment.