Calcite-components: Enhancement: calcite-panel setFocus also needs to focus flow back button

Created on 16 Nov 2020  路  6Comments  路  Source: Esri/calcite-components

Description

Currently there is no way to set the focus on the back button of a flow panel.
setFocus(focusId?: "dismiss-button")

Also, would it make sense to automatically set the focus on the back button if the user travels through a flow?

cc @dhrumil83

Acceptance Criteria

Relevant Info

Which Component

Example Use Case

3 - installed enhancement

Most helpful comment

@jcfranco I'm wondering if we should update all of our default setFocus methods to by default somehow find the first focusable element inside the shadow dom?

We would need some kind of utility for this.

For now, i'll create a way to focus to the back button. sound good?

All 6 comments

@jcfranco I'm wondering if we should update all of our default setFocus methods to by default somehow find the first focusable element inside the shadow dom?

We would need some kind of utility for this.

For now, i'll create a way to focus to the back button. sound good?

Great idea! Can you create an issue for this util for me?

Created! maybe we can get the tabbable dependency working for shadow dom?

Installed

Focus works well now but I don't see "back-button" in the doc. Had to look in the code. Maybe I have to wait for a full release, tested with next.41.

Yeah release should get it in the doc.

Was this page helpful?
0 / 5 - 0 ratings