-
Notifications
You must be signed in to change notification settings - Fork 80
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
feat(datagrid): interactive html element focus in datagrid cell #1739
base: main
Are you sure you want to change the base?
Conversation
Thank you, 🤖 Clarity Release Bot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Write a unit tests in key-navigation-grid.controller.spec.ts
@@ -201,6 +201,7 @@ export class KeyNavigationGridController implements OnDestroy { | |||
} else { | |||
const tabbableElements = getTabbableItems(activeCell); | |||
elementToFocus = tabbableElements.length ? tabbableElements[0] : activeCell; | |||
elementToFocus.setAttribute('tabindex', '0'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In prior section if the active cell have tabbable element in it. The tabbable element tab index should be removed tabbableElements[0].removeAttribute('tabindex');
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The other more relaiable way is to skip setting tabindex
to zero for the action cells.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: CDE-2603
What is the new behavior?
Does this PR introduce a breaking change?
Other information