-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
UI: Update engine dropdowns #26806
UI: Update engine dropdowns #26806
Conversation
- Add aria-label arg - use label or humanized ID as fallback aria-label - protect against non-array options arg
CI Results: |
@@ -4,7 +4,14 @@ | |||
~}} | |||
|
|||
{{! @onWrap is recommend to be a concurrency task! see <Page::Secret::Details> in KV addon for example }} | |||
<BasicDropdown @class="popup-menu" @horizontalPosition="auto-right" @verticalPosition="below" @onClose={{@onClose}} as |D|> | |||
<BasicDropdown |
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.
@@ -3,7 +3,7 @@ | |||
SPDX-License-Identifier: BUSL-1.1 | |||
~}} | |||
|
|||
<BasicDropdown @class="popup-menu" @horizontalPosition="auto-right" @verticalPosition="below" as |D|> | |||
<BasicDropdown @class="popup-menu" @horizontalPosition="auto-right" @verticalPosition="below" @renderInPlace={{true}} as |D|> |
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.
@@ -57,6 +57,7 @@ | |||
@selectLimit="1" | |||
@fallbackComponent="input-search" | |||
@onChange={{this.selectRole}} | |||
@renderInPlace={{true}} |
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.
@@ -35,7 +35,13 @@ | |||
Sign Intermediate | |||
</ToolbarLink> | |||
{{/if}} | |||
<BasicDropdown @class="popup-menu" @horizontalPosition="auto-right" @verticalPosition="below" as |D|> | |||
<BasicDropdown |
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.
@@ -8,7 +8,13 @@ | |||
<ToolbarLink @route="issuers.import" @model={{@backend}} data-test-generate-issuer="import"> | |||
Import | |||
</ToolbarLink> | |||
<BasicDropdown @class="popup-menu" @horizontalPosition="auto-right" @verticalPosition="below" as |D|> | |||
<BasicDropdown |
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.
@@ -33,7 +33,13 @@ | |||
> | |||
Sign Intermediate | |||
</ToolbarLink> | |||
<BasicDropdown @class="popup-menu" @horizontalPosition="auto-right" @verticalPosition="below" as |D|> | |||
<BasicDropdown |
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.
@@ -39,6 +39,7 @@ | |||
@disallowNewItems={{true}} | |||
@onChange={{this.handleRolesInput}} | |||
@fallbackComponent="input-search" | |||
@renderInPlace={{true}} |
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.
@@ -64,6 +65,7 @@ | |||
@disallowNewItems={{true}} | |||
@onChange={{this.handleCertificateInput}} | |||
@fallbackComponent="input-search" | |||
@renderInPlace={{true}} |
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.
@@ -89,7 +91,7 @@ | |||
@onChange={{this.handleIssuerSearch}} | |||
@fallbackComponent="input-search" | |||
@shouldRenderName={{true}} | |||
@nameKey={{"issuerName"}} | |||
@renderInPlace={{true}} |
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.
@@ -89,6 +89,7 @@ | |||
@label="Paths in this {{this.config.mode}}" | |||
@options={{this.autoCompleteOptions}} | |||
@search={{perform this.setAutoCompleteOptions}} | |||
@renderInPlace={{true}} |
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.
@@ -25,6 +25,7 @@ | |||
@placeholder="Filter by type" | |||
@inputValue={{if this.typeFilterName (array this.typeFilterName)}} | |||
@onChange={{fn this.onFilterChange "type"}} | |||
@renderInPlace={{true}} |
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.
@@ -53,6 +53,7 @@ | |||
@selectLimit={{1}} | |||
@disallowNewItems={{true}} | |||
@onChange={{this.setMount}} | |||
@renderInPlace={{true}} |
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.
Build Results: |
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.
Thank you for the screenshots!
This work is required as part of #26708
As part of the upgrade to Ember 5, we also need to update
ember-power-select
andember-basic-dropdown
. As part of this upgrade, the dropdown content no longer renders in tests when the dropdown is located within an engine unless@renderInPlace
is passed in. Since the changes required can be done separately from the upgrade, I decided to split the work out into its own PR. There are no models used in engines which haveeditType: 'searchSelect'
defined on their attributes, so no updates necessary forFormField
.Another thing we needed to update for this to work for users is to update the styling of
toolbar-scroller
. With the previous CSS, the dropdown contents were hidden under a scrollbar:With these changes, it renders correctly:
After this toolbar update, we are unblocked from adopting HDS Dropdowns in the toolbar.