Skip to content

Conversation

@meganaconley
Copy link
Contributor

Description

  • Update Calendar to match spec and add screen-reader-only section
  • Style changes to RTL checkbox/radio

Calendar before:

Screen Shot 2020-04-02 at 5 02 07 PM

Calendar after:

Screen Shot 2020-04-02 at 4 58 43 PM

Screen Shot 2020-04-02 at 5 02 07 PM

Radio/checkbox before:

Screen Shot 2020-04-02 at 5 08 16 PM

Screen Shot 2020-04-02 at 5 08 10 PM

Radio/checkbox after:
Screen Shot 2020-04-02 at 5 06 31 PM

Screen Shot 2020-04-02 at 5 06 23 PM

@netlify
Copy link

netlify bot commented Apr 3, 2020

Deploy preview for fundamental-react ready!

Built with commit ea28cc1

https://deploy-preview-957--fundamental-react.netlify.com

@meganaconley meganaconley requested review from a team, jacobdevera and prsdthkr April 3, 2020 00:16
key={month} name={month}
onClick={() => this.changeMonth(month)}>
onClick={() => this.changeMonth(month)}
onFocus={this.handleMonthFocus(month)}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be onFocus={() => this.handleMonthFocus(month)}>?

name={element}
onClick={() => this.changeYear(element)}>
onClick={() => this.changeYear(element)}
onFocus={this.handleYearFocus(element)}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be onFocus={() => this. handleYearFocus(element)}>?

data-is-focused={day.isSame(currentDateDisplayed)}
key={copyDate}
onClick={isEnabledDate(day, this.props) ? () => this.dateClick(copyDate, enableRangeSelection) : null}
onFocus={this.handleDayFocus(day)}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be onFocus={() => this.handleDayFocus(day)}?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lint complains about creating a function in a loop. This is why the function declarations you pointed out seem weird as well. Yes, even though the onClick looks the same, just the focus one triggered the lint rule.

@meganaconley meganaconley requested a review from a team April 7, 2020 20:14
@meganaconley meganaconley merged commit 0fbdd9b into master Apr 9, 2020
@meganaconley meganaconley deleted the fix/update-fs branch April 9, 2020 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants