Skip to content

Commit

Permalink
Adding tabbable events
Browse files Browse the repository at this point in the history
  • Loading branch information
schoettler committed Sep 7, 2018
1 parent d1e90b1 commit 31d6b86
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/EventCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class EventCell extends React.Component {

return (
<EventWrapper {...this.props} type="date">
<div
<button
{...props}
style={{ ...userProps.style, ...style }}
className={cn('rbc-event', className, userProps.className, {
Expand All @@ -83,7 +83,7 @@ class EventCell extends React.Component {
onDoubleClick={e => onDoubleClick && onDoubleClick(event, e)}
>
{typeof children === 'function' ? children(content) : content}
</div>
</button>
</EventWrapper>
)
}
Expand Down
6 changes: 5 additions & 1 deletion src/less/event.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.rbc-event {
padding: @event-padding;
background-color: @event-bg;
border: 0;
border-radius: @event-border-radius;
color: @event-color;
cursor: pointer;
Expand All @@ -15,6 +16,10 @@
&.rbc-selected {
background-color: darken(@event-bg, 10%);
}

&:focus {
border: 2px solid red;
}
}

.rbc-event-label {
Expand Down Expand Up @@ -44,4 +49,3 @@
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}

0 comments on commit 31d6b86

Please sign in to comment.