-
Notifications
You must be signed in to change notification settings - Fork 17
fix(drawer): allow custom width/height and resolve nested dropdown positioning #6299
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
base: main
Are you sure you want to change the base?
Changes from 5 commits
70c9c32
00697c8
b2f05b4
3c3ffa2
6e8ae67
f787cb7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@db-ux/core-components": patch | ||
| --- | ||
|
|
||
| refactor: Fixed an issue where the drawer ignored custom max-width and max-height properties due to internal min-width overrides. Additionally, resolved a bug where nested fixed-position elements (like DBCustomSelect dropdowns) were incorrectly positioned while the drawer was open. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,7 +40,7 @@ | |
| /* stylelint-disable-next-line db-ux/use-sizing */ | ||
| min-block-size: var( | ||
| --db-drawer-min-height, | ||
| calc(100% - #{variables.$db-spacing-fixed-xl}) | ||
| auto | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the default value of
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we remove the declaration entirely, the users can't set their own minimums via |
||
| ); | ||
| max-inline-size: none; | ||
| } | ||
|
|
@@ -173,7 +173,7 @@ $spacings: ( | |
| /* stylelint-disable-next-line db-ux/use-sizing */ | ||
| min-inline-size: var( | ||
| --db-drawer-min-width, | ||
| calc(100% - #{variables.$db-spacing-fixed-xl}) | ||
| auto | ||
| ); | ||
|
|
||
| &:not([data-direction]), | ||
|
|
@@ -287,12 +287,12 @@ $spacings: ( | |
| &:not([data-direction]), | ||
| &[data-direction="right"], | ||
| &[data-direction="left"] { | ||
| transform: translateX(0%); | ||
| transform: none; | ||
| } | ||
|
|
||
| &[data-direction="up"], | ||
| &[data-direction="down"] { | ||
| transform: translateY(0%); | ||
| transform: none; | ||
| } | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.