Skip to content

Commit

Permalink
fix: add relative positioning to div wrapper #187
Browse files Browse the repository at this point in the history
- This commit addresses the positioning issue of `auro-dropdown`
when `auro-select` is placed inside `auro-dialog` component

Changes to be committed:
	modified:   package-lock.json
	modified:   src/auro-select.js
	modified:   src/style.scss
  • Loading branch information
fajar-apri-alaska authored and jason-capsule42 committed Jun 10, 2024
1 parent 87f0776 commit 4ec21ac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/auro-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ export class AuroSelect extends LitElement {
// function that renders the HTML and CSS into the scope of the component
render() {
return html`
<div>
<div class="outerWrapper">
<div aria-live="polite" class="util_displayHiddenVisually">
${this.optionActive && this.options.length > 0
? html`
Expand Down
4 changes: 4 additions & 0 deletions src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@
}
}

.outerWrapper {
position: relative;
}

auro-menuoption {
pointer-events: none;
}
Expand Down

0 comments on commit 4ec21ac

Please sign in to comment.