Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Assign header__label class name to label directly, instead of using a…
… separate span
  • Loading branch information
poeschko committed Nov 14, 2018
commit ccc5849366e04a17d3ceb4db1c022026e73ff693
4 changes: 2 additions & 2 deletions fixtures/dom/src/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ class Header extends React.Component {
checked={this.state.production}
onChange={this.handleProductionChange}
/>
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add a style to center this vertically with the label? maybe:

.header__checkbox {
  vertical-align: middle;
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, done.

<label htmlFor="react_production">
<span className="header__label">Production</span>
<label htmlFor="react_production" className="header__label">
Production
</label>
<label htmlFor="example">
<span className="sr-only">Select an example</span>
Expand Down