Skip to content

Commit

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

Changes to be committed:
	modified:   package-lock.json
	modified:   src/auro-datepicker.js
	modified:   src/style.scss
  • Loading branch information
fajar-apri-alaska authored and jason-capsule42 committed Jun 10, 2024
1 parent 04dae17 commit 190e89d
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-datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ export class AuroDatePicker extends LitElement {
// function that renders the HTML and CSS into the scope of the component
render() {
return html`
<div>
<div class="outerWrapper">
<${this.dropdownTag}
for="dropdownMenu"
bordered
Expand Down
4 changes: 4 additions & 0 deletions src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
}
}

.outerWrapper {
position: relative;
}

.datepickerElement-helpText {
margin: var(--ds-size-50, $ds-size-50) 0;
font-size: var(--ds-text-body-size-xs, $ds-text-body-size-xs);
Expand Down

0 comments on commit 190e89d

Please sign in to comment.