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 10, 2018
1 parent d1e90b1 commit ed033fe
Show file tree
Hide file tree
Showing 2 changed files with 9 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
8 changes: 7 additions & 1 deletion src/less/event.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
.rbc-event {
padding: @event-padding;
background-color: @event-bg;
border: 0;
border-radius: @event-border-radius;
color: @event-color;
cursor: pointer;
width: 100%;
text-align: left;

.rbc-slot-selecting & {
cursor: inherit;
Expand All @@ -15,6 +18,10 @@
&.rbc-selected {
background-color: darken(@event-bg, 10%);
}

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

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

0 comments on commit ed033fe

Please sign in to comment.