Skip to content
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

fix(input-date-picker): fix date-picker wrapper displaying beyond its bounds #8172

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
@include disabled();

.calendar-picker-wrapper {
@apply static
w-full
shadow-none;
@apply shadow-none;
transform: translate3d(0, 0, 0);
}

Expand Down Expand Up @@ -89,24 +87,6 @@
}
}

:host([scale="s"][range]:not([layout="vertical"])) {
.calendar-picker-wrapper {
inline-size: 216px;
}
}

:host([scale="m"][range]:not([layout="vertical"])) {
.calendar-picker-wrapper {
inline-size: 286px;
}
}

:host([scale="l"][range]:not([layout="vertical"])) {
.calendar-picker-wrapper {
inline-size: 398px;
}
}

.menu-container {
--calcite-floating-ui-z-index: theme("zIndex.dropdown");
@include floatingUIContainer();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,56 @@ export const invalidStatus_TestOnly = (): string => html`

export const scales_TestOnly = (): string =>
html`
<calcite-input-date-picker scale="s" icon value="2020-12-12"></calcite-input-date-picker>
<calcite-input-date-picker scale="m" icon value="2020-12-12"></calcite-input-date-picker>
<calcite-input-date-picker scale="l" icon value="2020-12-12"></calcite-input-date-picker>
<style>
.container {
display: flex;
flex-direction: column;
width: 1400px;
height: 1200px;
gap: 400px;
}

.use-case {
display: flex;
gap: 100px;
}
</style>
<div class="container">
<div class="use-case">
<calcite-input-date-picker scale="s" icon open value="2020-12-12"></calcite-input-date-picker>
<calcite-input-date-picker scale="m" icon open value="2020-12-12"></calcite-input-date-picker>
<calcite-input-date-picker scale="l" icon open value="2020-12-12"></calcite-input-date-picker>
</div>
<div class="use-case">
<calcite-input-date-picker
scale="s"
open
start="2020-12-12"
end="2020-12-16"
range
layout="horizontal"
value="2020-12-12"
></calcite-input-date-picker>
<calcite-input-date-picker
scale="m"
open
start="2020-12-12"
end="2020-12-16"
range
layout="horizontal"
value="2020-12-12"
></calcite-input-date-picker>
<calcite-input-date-picker
scale="l"
open
start="2020-12-12"
end="2020-12-16"
range
layout="horizontal"
value="2020-12-12"
></calcite-input-date-picker>
</div>
</div>
`;

export const darkModeRTL_TestOnly = (): string => html`
Expand Down
Loading