Repository navigation
docs: edit h3, button, and hr, boilerplate styles - #41052
kapunahelewong wants to merge 1 commit into
Conversation
|
You can preview 649789b at https://pr41052-649789b.ngbuilds.io/. |
|
You can preview 9409afb at https://pr41052-9409afb.ngbuilds.io/. |
|
You can preview 5a84994 at https://pr41052-5a84994.ngbuilds.io/. |
|
You can preview 0b479ac at https://pr41052-0b479ac.ngbuilds.io/. |
|
You can preview 0322b20 at https://pr41052-0322b20.ngbuilds.io/. |
|
You can preview 3d77728 at https://pr41052-3d77728.ngbuilds.io/. |
|
You can preview 731c8f8 at https://pr41052-731c8f8.ngbuilds.io/. |
|
You can preview d193f0b at https://pr41052-d193f0b.ngbuilds.io/. |
|
You can preview 2821b3d at https://pr41052-2821b3d.ngbuilds.io/. |
|
You can preview b385aba at https://pr41052-b385aba.ngbuilds.io/. |
There was a problem hiding this comment.
This is a little unusual. What is the purpose of this style?
There was a problem hiding this comment.
Without box-sizing: border-box, the inputs extend past their parent container. This keeps them inside and behaving as intended.
Here's my thinking on the width, padding, and display (I'm open to other ways though):
The width at 100% and display: block set a default style that lends itself to a responsive-friendly, consistent UI with minimal maintenance. When we have inputs we want to keep smaller or inline, this would be the exception to the rule and we can style them in the example. Having labels, and especially text inputs, that are inline and different widths can be harder for the eye to scan and display arrhythmically at smaller widths, like StackBlitz. The 100% width and padding create a larger target area for touch and pointers. In this most recent commit, I've changed the selector to be more specific with input[type="text"] so as not to break checkboxes, etc.
There was a problem hiding this comment.
I am asking about the display: block style specifically. Does it make any difference?
(AFAICT, it does not, since box-sizing: border-box and width: 100% should be enough. But maybe I am missing something.)
There was a problem hiding this comment.
Aha I see! Removed. I wasn't noticing the redundancy. Thanks!
|
You can preview 17a5042 at https://pr41052-17a5042.ngbuilds.io/. |
|
You can preview f614747 at https://pr41052-f614747.ngbuilds.io/. |
gkalpak
left a comment
There was a problem hiding this comment.
LGTM 👍
BTW, are there any styles from specific examples that could be removed now that these styles are in the common stylesheet?
Yes, and that's part of my clean up in the accessibility pass. I don't know them off the top of my head, but am keeping a look out as I work through. Thanks so much for all your help here, @gkalpak!! |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Puts styles into boilerplate to avoid re-use per these comments by @gkalpak #40914 (review)