Skip to content

Conversation

SergioCrisostomo
Copy link
Member

FF is hard to style when it comes to checkboxes. With this change we
have a label and a span doing the style job and the checkbox just
storing the state.

FF is hard to style when it comes to checkboxes. With this change we
have a label and a span doing the style job and the checkbox just
storing the state.
@@ -18,10 +18,12 @@ block main

label
input(type="checkbox", name="minified", value="1")
span
| Download minified source code
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't the text be inside the <span>?

Copy link
Member Author

Choose a reason for hiding this comment

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

@arian no, the span is just a "holder" for the square showing the "selected"/"not selected" state. So the idea is having the span replacing the checkbox itself that was hard to style and is now display: none;

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.

2 participants