Skip to content

Commit

Permalink
Fix incorrect compliance calendar picker zindex
Browse files Browse the repository at this point in the history
Depending on the browser viewport size, the compliance calendar picker would render underneath the compliance view tab menu. This commit adds a zindex to the calendar picker dropdown to correct this issue.

Signed-off-by: Scott Christopherson <scott@scott-christopherson.com>
  • Loading branch information
scottopherson committed Oct 27, 2020
1 parent cb73664 commit b1e358c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<chef-icon>date_range</chef-icon>
<span>{{ date | datetime: CHEF_SHORT_DATE }}</span>
</chef-button>
<chef-dropdown [attr.visible]="calendarVisible">
<chef-dropdown class="calendar-dropdown" [attr.visible]="calendarVisible">
<chef-click-outside omit="calendar-btn" (clickOutside)="hideCalendar()">
<chef-calendar
[selected]="date.toISOString()"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@
}
}

chef-dropdown {
.calendar-dropdown {
top: 100%;
right: 0;
padding: 0.5em;
z-index: 1;
}
}
}
Expand Down

0 comments on commit b1e358c

Please sign in to comment.