Skip to content

Commit

Permalink
Only show cursor pointer if for attribute is set on label (#825)
Browse files Browse the repository at this point in the history
* only show cursor pointer if for attribute is set on label
  • Loading branch information
snide authored May 14, 2018
1 parent a153c7a commit a265f2d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- Added utility CSS classes for text and alignment concerns. ([#774](https://github.com/elastic/eui/pull/774))
- Added `compressed` versions of `EuiFormRow` and all form controls. ([#800](https://github.com/elastic/eui/pull/800))
- Removed pointer cursor on `EuiFormLabel` when a `for` property is not set. ([#825](https://github.com/elastic/eui/pull/825))
- Added the ability to add tooltips to `EuiContextMenuItem`s. ([#817](https://github.com/elastic/eui/pull/817))

**Bug fixes**
Expand Down
5 changes: 4 additions & 1 deletion src/components/form/form_label/_form_label.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
.euiFormLabel {
font-size: $euiFontSizeXS;
margin-bottom: $euiSizeS;
cursor: pointer;
transition: all $euiAnimSpeedFast $euiAnimSlightResistance;
font-weight: $euiFontWeightMedium;

Expand All @@ -16,3 +15,7 @@
color: $euiColorPrimary; /* 1 */
}
}

.euiFormLabel[for] {
cursor: pointer;
}

0 comments on commit a265f2d

Please sign in to comment.