Skip to content

Commit 55f1da0

Browse files
authored
Merge pull request #74 from rwilson504/ButtonEventOutline
Make Outline Match Border Colors
2 parents 627562c + 1d26861 commit 55f1da0

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

Calendar/Calendar/CalendarControl.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,12 @@ const generateThemeCSS = () : string =>{
182182
border-color: ${calendarBorderColor} !important;
183183
}
184184
185+
.rbc-event:focus,
186+
.rbc-toolbar button:focus
187+
{
188+
outline: 5px auto ${calendarBorderColor};
189+
}
190+
185191
.rbc-day-slot .rbc-time-slot {
186192
border-color: ${calendarBorderColor.fade(.2)} !important;
187193
}

Calendar/Calendar/css/react-big-calendar.css

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,8 @@ button.rbc-input::-moz-focus-inner {
187187
cursor: inherit;
188188
pointer-events: none; }
189189
.rbc-event.rbc-selected {
190-
background-color: #265985; }
191-
.rbc-event:focus {
192-
outline: 5px auto #3b99fc; }
193-
194-
/* .rbc-event:hover{
195-
opacity: .8;
196-
} */
190+
background-color: #265985;
191+
}
197192

198193
.rbc-event-label {
199194
font-size: 80%; }

0 commit comments

Comments
 (0)