Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
react-dates
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zandor Smith
react-dates
Commits
d3e12dec
Commit
d3e12dec
authored
6 years ago
by
Nicole Kinser
Browse files
Options
Downloads
Patches
Plain Diff
Focus ring now shows up around custom navigation buttons
parent
dd1ab720
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+3
-0
3 additions, 0 deletions
.gitignore
src/components/DayPickerNavigation.jsx
+2
-2
2 additions, 2 deletions
src/components/DayPickerNavigation.jsx
stories/DayPicker.js
+12
-4
12 additions, 4 deletions
stories/DayPicker.js
with
17 additions
and
6 deletions
.gitignore
+
3
−
0
View file @
d3e12dec
...
...
@@ -47,3 +47,6 @@ yarn.lock
package-lock.json
css/styles.css
# Cache
.cache/
This diff is collapsed.
Click to expand it.
src/components/DayPickerNavigation.jsx
+
2
−
2
View file @
d3e12dec
...
...
@@ -126,7 +126,7 @@ function DayPickerNavigation({
{
!
isVerticalScrollable
&&
(
<
div
role
=
"button"
tabIndex
=
"0"
tabIndex
=
{
isDefaultNavPrev
?
'
0
'
:
null
}
{
...
css
(
styles
.
DayPickerNavigation_button
,
isDefaultNavPrev
&&
styles
.
DayPickerNavigation_button__default
,
...
...
@@ -164,7 +164,7 @@ function DayPickerNavigation({
<
div
role
=
"button"
tabIndex
=
"0"
tabIndex
=
{
isDefaultNavNext
?
'
0
'
:
null
}
{
...
css
(
styles
.
DayPickerNavigation_button
,
isDefaultNavNext
&&
styles
.
DayPickerNavigation_button__default
,
...
...
This diff is collapsed.
Click to expand it.
stories/DayPicker.js
+
12
−
4
View file @
d3e12dec
...
...
@@ -10,29 +10,37 @@ import {
}
from
'
../src/constants
'
;
const
TestPrevIcon
=
()
=>
(
<
span
<
div
style
=
{{
border
:
'
1px solid #dce0e0
'
,
backgroundColor
:
'
#fff
'
,
color
:
'
#484848
'
,
left
:
'
24px
'
,
padding
:
'
3px
'
,
position
:
'
absolute
'
,
width
:
'
40px
'
,
}}
tabindex
=
"
0
"
>
Prev
<
/
span
>
<
/
div
>
);
const
TestNextIcon
=
()
=>
(
<
span
<
div
style
=
{{
border
:
'
1px solid #dce0e0
'
,
backgroundColor
:
'
#fff
'
,
color
:
'
#484848
'
,
padding
:
'
3px
'
,
position
:
'
absolute
'
,
right
:
'
24px
'
,
width
:
'
40px
'
,
}}
tabindex
=
"
0
"
>
Next
<
/
span
>
<
/
div
>
);
const
TestCustomInfoPanel
=
()
=>
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment