-
Notifications
You must be signed in to change notification settings - Fork 22.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove superflous and wrong selectors #36744
Conversation
Preview URLs Flaws (251)URL:
(comment last updated: 2024-12-23 00:12:34) |
files/en-us/learn/forms/how_to_structure_a_web_form/example/index.md
Outdated
Show resolved
Hide resolved
@@ -125,7 +125,7 @@ form { | |||
border-radius: 1em; | |||
} | |||
|
|||
div + div { | |||
p + p { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering if we should delete this selector altogether. There reference in https://developer.mozilla.org/en-US/docs/Learn/Forms/How_to_structure_a_web_form is that this is "extra styles you can try", but this makes very little difference visually unless you make it much better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes are good, Just a few comments/questions
This pull request has merge conflicts that must be resolved before it can be merged. |
* textarea selector was used multiple times, even though there is no <textarea> in the HTML. div + div selector was changed to p + p, as all input and label elements are nested inside p elements, and not divs in the example.
f2b6e74
to
a917a8d
Compare
files/en-us/learn_web_development/extensions/forms/how_to_structure_a_web_form/example/index.md
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this @DavidStaus .
Note, you didn't respond to my review comments, so I have made those changes as I thought best.
Description
div + div selector was changed to p + p, as all input and label elements are nested inside p elements, and not divs in the example.
Motivation
The extra selectors confused me as I was trying to copy the styling, and I thought there was something I had missed.
Additional details
Related issues and pull requests