Comments (3)
Can't fix this until we get the option of setting the delegatesFocus
on the shadow dom.
calling .focus()
on a calcite-action
doesn't do anything because the focus needs to be called on the button element inside.
When a node inside shadow DOM gains focus, :focus applies to the host in addition to the focused element.
https://developers.google.com/web/fundamentals/web-components/shadowdom
from calcite-app-components.
Summary
The calcite-flow-item menu-button needs to follow the guidelines found at this link: http://w3c.github.io/aria-practices/#menubutton
Specifically look into the aria-haspopup and aria-expanded
Also, when the user opens the menu and then continues tabbing through the page, the menu should close automatically.
Actual Behavior
Menu stays open when focus is removed
Expected Behavior
Menu should close when the focus is shifted to another element on the page
Reproduction Steps
https://esri.github.io/calcite-app-components/demos/calcite-flow-item.html
Tab through, open the menu button, then continue tabbing. Menu will not close
Relevant Info
from calcite-app-components.
verified!
from calcite-app-components.
Related Issues (20)
- Enhancement: Support dragging items between Calcite Value Lists HOT 3
- Enhancement: Reusable border style HOT 1
- Tooling: Add changelog for prerelease/next updates HOT 1
- Bug: Action icon scale should be medium unless Action scale is L HOT 3
- Bug: action-bar does not synchronize expanded state with new children HOT 2
- calcite-value-list: calciteListItemChange event HOT 4
- Bug: calcite-pick-list group items remain when filtering HOT 6
- Bug: calcite-block-section toggle button spacing HOT 2
- Tooling: ensure changelog contains changes from prereleases HOT 2
- Bug: calcite-shell-center-row, if no actionBar specified get an error HOT 1
- Enhancement: ActionBar & ActionPad. Add scale property that its Actions inherit. HOT 1
- Bug: Action. Icon size update. HOT 1
- Bug: calcite-block-section calciteBlockSectionToggle is not fired anymore HOT 3
- Bug: calcite-pick-list-item is always using the circleF icon even when not selected HOT 3
- slot-container height of 0 HOT 4
- [calcite-app-components] migration plan HOT 1
- Enhancement: Ability to drag and drop items between different lists HOT 3
- Enhancement: Ability to set orientation (vertical/horizontal) on calcite-action-bar HOT 1
- Bug: calcite-block-section and intlExpand/intlCollapse HOT 1
- Enhancement: Make Calcite-Value-List-Item fully draggable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from calcite-app-components.