-
Notifications
You must be signed in to change notification settings - Fork 353
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
Clean up button example code #609
Conversation
@kleinfreund, I apologize again for such slow response. As a screen reader user, I have a really hard time culling all the whitespace changes to find the material changes. I have tried all the git options for producing diffs that ignore whitespace, but they still produced large diff files that were slow to crawl through. That's my problem, though, not yours. It is something I need to learn to manage. And, I will. Based on your comments, though, there is one material change that needs to be reversed. We need the |
@mcking65 Oh no. I did not consider that. Apologies for that. Ideally, I would have made two separate commits; one for whitespace, one for other changes. I will provide you with a list of changes that are hidden by whitespace changes. I will refer to lines by updated line numbers.
A single extra newline was added in the following lines: 47, 51, 60, 66, 89, 156, 171, 173, 175, 177 and 184. A personal note: You’re not to blame for not being able to make out the changes. The diff does not provide any cue for some of the changes made inside of blocks that also change whitespace. Also, there isn’t a visual cue. One would have to read the actual contents in order to notice. In the future, I will try not to mix whitespace changes with other changes to avoid such issues. Thank you for reviewing this. |
I pushed two commits with the following changes:
|
I just rebased my fork on the current state of the upstream repository. That was scary, but it looks like it worked. Do you want me to squash these 3 commits together? |
Thank you for rebasing on latest! That always helps. When multiple commits come from a fork, I squash when I merge ... no need to do it on your end. I want to have a sightee or two review the core.css change before merging. The rest all looks good to me! |
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 don't see any issue with including kbd
styling when inside a th
, but I am now curious why @MichielBijl explicitly excluded it in e0ab6d6.
Here's the visual change:
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.
Ah, I hadn't seen @jnurthen's comment when I approved this. I defer to him on the style requirements.
In that case, I would recommend keeping the current change and just doing a th > kbd
override to undo the default styling. It's weird to have default styling inside a :not(...)
selector.
First of all, I agree with @sh0ji: A default styling should be applied to With a default styling for Anyway, should I just revert back to |
@sh0ji I changed that because the column is called “Key”. There’s no need for a visual cue to indicate these are keys. As for the CSS changes, @sh0ji why is it weird to have default styling applied via @kleinfreund why did you change We could combine it with the separate |
@MichielBijl You're absolutely right that the current selector is the shortest way of expressing "everywhere except X." I prefer a more verbose approach for two reasons:
"Base statement with low specificity -> override of base statement with higher specificity" is almost idiomatic of CSS. |
@MichielBijl I wasn’t aware that some user agents set other background properties than the color. Is that the case? I read that code as "set a background color", not "reset all background properties and set a background color". In fact, As for the selector, I agree with @sh0ji. |
The reset is intentional. From the CSS Backgrounds and Borders spec:
There’s a note with an example in the section I link to. As for the When it comes down to specificity it doesn't really matter in this case—the specificity of the original selector is already really low and can easily be overwritten where necessary. Here's a CodePen example that demonstrates the specificity. To add to this, there's currently no need to overwrite the base style anywhere on the example page. So, why change it right now? It's not like it's hurting anyone. |
I’m aware of the behavior and its intentions with regards to the specification. I was talking about the author perspective: Was it intentional resetting the background styles? Why? Presumably due to some user agents using background properties that are not Regarding specificity, this is really not an issue in this project. Thank you for reviewing this. I reckon much was discussed around a very small issue/non-issue without any big necessity. I will revert the changes to the CSS file tomorrow. |
I reverted the changes to the CSS file by adding a new commit so that the review comments are not invalidated. It’s probably necessary to squash all current commits into one upon merging. |
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.
Looks ok to me.
In preparation for developing examples for tri-state toggle buttons (see issue #535).
This pull request addresses/changes the following:
type="text/javascript"
(some scripts have it, some don’t. I chose one.)/
in the meta charset tag (some examples have it, some don’t).Please note: Due to indentation changes, the GitHub diff doesn’t show some changes. For example,I changed
<th>
to<td>
elements when inside<tbody>
. It may have been incorrect to do so.