-
Notifications
You must be signed in to change notification settings - Fork 1
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
FP-1318: Revisit Section Pattern #433
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Resolved https://confluence.tacc.utexas.edu/x/DyUFDg… delete comments. - Let c-callout manage changes ot itself. - Forget s-section idea (because we have no pluign to manage classes).
(The sample code in .u-empty refers to unexplained code in s-section.)
The code is self-explanatory (if you can read CSS).
I.e. perform #403 in `o-section.css` instead of standard and home templates.
- Let Bootstrap container do its thing. - Remove variables that add complexity. - Use new padding-block property.
- A 1px vertical overflow was on any page with 2 same-color sections. - Instead of overlapping section atop border, make border transparent. - And isolate updated code used to prevent borders on banners.
wesleyboar
force-pushed
the
task/FP-1318-section-pattern-revisit
branch
from
January 19, 2022 03:31
cba66eb
to
9fc9c2d
Compare
wesleyboar
force-pushed
the
task/FP-1318-section-pattern-revisit
branch
from
January 21, 2022 22:40
010e1b1
to
4822fe7
Compare
duckonomy
approved these changes
Jan 25, 2022
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.
Tested locally!
LGTM!
Thanks, @duckonomy. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Clean up existing TACC Section pattern.
Design has approved (via private review), but implementations should have dev review.
Wasn't There Gonna be a Section Plugin?
Yes, but not now, because simpler options exist:
Requires:
Tickets
Changes
Simplify the code, document it better, and support automated pattern library.
Move Callout title color styling to Callout stylesheet.
Though Section code is relevant, the change is to Callout element, so the code belongs with Callout. This is the logic I now follow for deciding where to place cross-pattern styles.Document Section CSS.
This CSS "docblock" is required by the automated pattern library.
Use less verbose selectors.
.o-section
— Matches exact standalone class, so light Section must now be labeled with two classeso-section o-section--style-light
[class*="o-section--"]
— Matches any modifier class, so light Section was before able to be labeled with one classeso-section--style-light
Simplify spacing code.
Explain the "empty" selector code.
This code supports an odd feature specific to section intros. (FP-1463 will extract the code.)
Do not hide vertical overflow on page.
Style nested sections.
Section within a section:
Mention FP-1462 and FP-1463.
These tickets will extract code from Section into new patterns.
Update Section's sample markup.
These changes support automated pattern library and section snippets.
Add manual pattern library snippet.
This allows creation of a snippet for consistently generating Section markup (for testing).
Move overflow-hiding code from templates to Core.
I am now confident that this code in global styles will not break any v1 sites (because only horizontal overflow is hidden, now).
Demos
.o-section
codeAutomated Pattern LibraryScreenshots
Testing
You may test locally or remote. Or do both if it makes you happy.
Remote:
dev.cep
manual pattern library.Local:
Be familiar with how to Test CMS Changes.
Create snippets that uses template
snippets/manual-pattern-library/o-grid.html
.Snippets to Make
Remote & Local:
Notes
The "sub" patterns of intro, banner, and layout will be extracted in FP-1462 and FP-1463.
To Do
Design Tweaks
95vw
, but find a way to still use100vw
) — 210ffe4[class*=o-section--style]+[class*=o-section--style]
to be color A after color A (never B+A nor A+B) — b682dedFootnotes
This is a fix to match the design. The left-and-right padding is (on most screens) 15px and comes from Bootstrap. ↩