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(Calendar): fix outline of calendar popover #104

Merged
merged 1 commit into from Apr 8, 2019
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/components/Calendar/__tests__/__snapshots__/demo.test.js.snap
Expand Up @@ -175,6 +175,10 @@ exports[`Calendar demo -- base 1`] = `
color: #bbb;
}

.c0 .uc-fe-calendar-date-panel {
outline: none;
}

.c0 .uc-fe-calendar-month-panel,
.c0 .uc-fe-calendar-year-panel,
.c0 .uc-fe-calendar-decade-panel {
Expand Down Expand Up @@ -1136,6 +1140,10 @@ exports[`Calendar demo -- controlled 1`] = `
color: #bbb;
}

.c0 .uc-fe-calendar-date-panel {
outline: none;
}

.c0 .uc-fe-calendar-month-panel,
.c0 .uc-fe-calendar-year-panel,
.c0 .uc-fe-calendar-decade-panel {
Expand Down Expand Up @@ -2835,6 +2843,10 @@ exports[`Calendar demo -- month 1`] = `
color: #bbb;
}

.c0 .uc-fe-calendar-date-panel {
outline: none;
}

.c0 .uc-fe-calendar-month-panel,
.c0 .uc-fe-calendar-year-panel,
.c0 .uc-fe-calendar-decade-panel {
Expand Down Expand Up @@ -3325,6 +3337,10 @@ exports[`Calendar demo -- rules 1`] = `
color: #bbb;
}

.c0 .uc-fe-calendar-date-panel {
outline: none;
}

.c0 .uc-fe-calendar-month-panel,
.c0 .uc-fe-calendar-year-panel,
.c0 .uc-fe-calendar-decade-panel {
Expand Down
4 changes: 3 additions & 1 deletion src/components/Calendar/style/index.js
Expand Up @@ -161,7 +161,9 @@ export const calendarMixin = ({ theme: { colorMap, colorList, Calendar: calendar
.${prefixCls}-disabled-cell, .${prefixCls}-month-panel-cell-disabled {
color: ${colorMap.disabled.text};
}

.${prefixCls}-date-panel {
outline: none;
}
.${prefixCls}-month-panel, .${prefixCls}-year-panel, .${prefixCls}-decade-panel {
position: absolute;
top: 0;
Expand Down
Expand Up @@ -1446,6 +1446,10 @@ exports[`LocaleProvider demo -- list 1`] = `
color: #bbb;
}

.c23 .uc-fe-calendar-date-panel {
outline: none;
}

.c23 .uc-fe-calendar-month-panel,
.c23 .uc-fe-calendar-year-panel,
.c23 .uc-fe-calendar-decade-panel {
Expand Down
Expand Up @@ -723,7 +723,7 @@ exports[`LocaleProvider switch locale 1`] = `
class="demo-wrap"
>
<div
class="uc-fe-calendar style__CalendarWrap-sc-10xxzvy-0 buWtkF"
class="uc-fe-calendar style__CalendarWrap-sc-10xxzvy-0 fgewOx"
tabindex="0"
>
<div
Expand Down Expand Up @@ -2692,7 +2692,7 @@ exports[`LocaleProvider switch locale 2`] = `
class="demo-wrap"
>
<div
class="uc-fe-calendar style__CalendarWrap-sc-10xxzvy-0 buWtkF"
class="uc-fe-calendar style__CalendarWrap-sc-10xxzvy-0 fgewOx"
tabindex="0"
>
<div
Expand Down