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

Expose ShadowDOM properties #1623

Closed
romulocintra opened this issue Jun 11, 2019 · 3 comments
Closed

Expose ShadowDOM properties #1623

romulocintra opened this issue Jun 11, 2019 · 3 comments
Assignees

Comments

@romulocintra
Copy link
Contributor

Stencil version:

 @stencil/core@all

I'm submitting a:

[ ] bug report
[x ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Current behavior:

Actually, in stencil component, you are able to set

@Component({
  tag: 'todo-list',
  styleUrl: 'todo-list.css',
  shadow : true / false 
})

Expected behavior:

I should able to control the ShadowDOM properties, exposing the same API as WC's to set open or close and in future DelegateFocus etc ...

@Component({
  tag: 'todo-list',
  styleUrl: 'todo-list.css',
  shadow : { mode : 'closed'  delegatesFocus : true } 
@ionitron-bot ionitron-bot bot added the triage label Jun 11, 2019
@kneyugn
Copy link

kneyugn commented Sep 1, 2019

It has been a challenge trying to implement accessible components with focus events. A lot of times, the element that needs to trigger the focus is inside of the shadow dom and not the host element. Exposing delegatesFocus will be very helpful.

@romulocintra
Copy link
Contributor Author

romulocintra commented Oct 17, 2019

cc @manucorporat @adamdbradley

Another good reason FIREFOX joined to

whatwg/html#4796

PR still open #1190

@adamdbradley
Copy link
Contributor

Featured added in ad94fd2

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

No branches or pull requests

3 participants