Skip to content

Commit

Permalink
Auto merge of #11079 - Zaggy1024:label-cursor, r=pcwalton
Browse files Browse the repository at this point in the history
Changed cursor for labels to "default" so their text doesn't use the text cursor.

The cursor in Firefox and Chrome for labels is always the default cursor rather than changing to the text cursor on text. In Edge, however, this only applies to the text of the actual label element.

This PR changes Servo to match Firefox and Chrome.

A convenient example of an element that this style applies to (and has different behavior between Firefox and Edge) is the "This repository" label for the search input at the top on Github.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11079)
<!-- Reviewable:end -->
  • Loading branch information
bors-servo committed May 13, 2016
2 parents 2e049a8 + f3f1504 commit 03465ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/servo.css
Expand Up @@ -33,6 +33,8 @@ td[align="right"] { text-align: right; }

center { text-align: -servo-center; }

label { cursor: default; }

input:not([type=radio i]):not([type=checkbox i]):not([type=reset i]):not([type=button i]):not([type=submit i]),
textarea {
cursor: text;
Expand Down

0 comments on commit 03465ad

Please sign in to comment.