-
Notifications
You must be signed in to change notification settings - Fork 77
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
refactor(modal, panel, popover)!: remove focusId
param from setFocus
method.
#6147
Conversation
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.
A couple comments, but LGTM. I think that just leaves pick/value list as the only two left with focusId
right?
src/components/popover/popover.tsx
Outdated
} | ||
|
||
focusFirstTabbable(this); | ||
forceUpdate(this); |
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.
this should be forceUpdate(this.el)
right?
src/components/popover/popover.tsx
Outdated
@@ -552,7 +540,7 @@ export class Popover | |||
renderCloseButton(): VNode { | |||
const { messages, closable } = this; | |||
return closable ? ( | |||
<div class={CSS.closeButtonContainer}> | |||
<div class={CSS.closeButtonContainer} key="close-button-container"> |
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.
Can you use CSS.closeButtonContainer
for the key
attribute instead of hardcoding it
src/components/popover/popover.tsx
Outdated
@@ -575,7 +563,7 @@ export class Popover | |||
) : null; | |||
|
|||
return headingNode ? ( | |||
<div class={CSS.header}> | |||
<div class={CSS.header} key="header"> |
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.
Reuse the string from resources
here as well por favor
* master: chore(modal): Remove invalid kind values (#6169) build: update browserslist db (#6171) docs: update component READMEs (#6168) refactor(combobox-item)!: remove `toggleSelected` method. (#6162) chore(color-picker): add missing message in `en` bundle (#6165) refactor(popover)!: remove `toggle` method. (#6161) docs: update component READMEs (#6163) refactor(modal, panel, popover)!: remove `focusId` param from `setFocus` method. (#6147) feat(tab-nav): Add `selectedTitle` property (#6149)
BREAKING CHANGE: Removed
focusId
parameter fromsetFocus
methods. When thesetFocus
method is called the first focusable element will be focused.