-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moves phrases out into one shared defaultPhrases file #351
Conversation
@@ -7,6 +7,7 @@ instrumentation: | |||
"public/**", | |||
"test/**", | |||
"coverage/**", | |||
"src/defaultPhrases.js" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trailing comma?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also why does this need to be ignored, if it's exercised on every import?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair. I was thinking that we would ignore because writing tests for the file itself seems v. silly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's useful to ensure that it can be imported without an error :-)
@@ -145,13 +144,16 @@ export default class DateRangePickerInput extends React.Component { | |||
})} | |||
> | |||
{(showDefaultInputIcon || customInputIcon !== null) && | |||
<span | |||
<button |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was this change meant to be included in this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. I figured we'd do some of the small aria-labeling/add those phrases unrelated to keyboard nav here.
@@ -80,6 +91,7 @@ export default function DayPickerNavigation(props) { | |||
} | |||
|
|||
<span | |||
aria-label={phrases.jumpToNextMonth} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. I figured we'd do some of the small aria-labeling/add those phrases unrelated to keyboard nav here.
@@ -72,6 +82,7 @@ export default function DayPickerNavigation(props) { | |||
<div className={navClassNames}> | |||
{!isVerticalScrollable && | |||
<span | |||
aria-label={phrases.jumpToPrevMonth} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. I figured we'd do some of the small aria-labeling/add those phrases unrelated to keyboard nav here.
@@ -122,13 +121,11 @@ export default class SingleDatePickerInput extends React.Component { | |||
'SingleDatePickerInput__clear-date--hide': !displayValue, | |||
'SingleDatePickerInput__clear-date--hover': isClearDateHovered, | |||
})} | |||
aria-label={phrases.clearDate} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. I figured we'd do some of the small aria-labeling/add those phrases unrelated to keyboard nav here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
(it'd be nice to not ignore the defaultPhrases file tho)
to: @ljharb @airbnb/webinfra
This is to split up some of the code in #301, which I admit, got away from me somewhat.