From ed033fe0929ccd6acd4fba51ea1d84486e4334fd Mon Sep 17 00:00:00 2001 From: Roberto von Schoettler Date: Mon, 10 Sep 2018 09:54:06 -0400 Subject: [PATCH] Adding tabbable events --- src/EventCell.js | 4 ++-- src/less/event.less | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/EventCell.js b/src/EventCell.js index c44a8f98c..200d08d68 100644 --- a/src/EventCell.js +++ b/src/EventCell.js @@ -70,7 +70,7 @@ class EventCell extends React.Component { return ( -
onDoubleClick && onDoubleClick(event, e)} > {typeof children === 'function' ? children(content) : content} -
+
) } diff --git a/src/less/event.less b/src/less/event.less index c46bf3764..231cdfa1d 100644 --- a/src/less/event.less +++ b/src/less/event.less @@ -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; @@ -15,6 +18,10 @@ &.rbc-selected { background-color: darken(@event-bg, 10%); } + + &:focus { + border: 2px solid red; + } } .rbc-event-label { @@ -44,4 +51,3 @@ border-bottom-left-radius: 0; border-bottom-right-radius: 0; } -