-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: core-styles v2 header #1068
base: main
Are you sure you want to change the base?
Conversation
CMS uses `margin-right: auto`, not `margin-left: auto`. Bootstrap5 uses `me` for "margin end" (and `ms` for "margin start"). I.e. Bootstrap adopted CSS's new language: - `margin-inline-end` - `margin-inline-start`
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1068 +/- ##
=======================================
Coverage 70.34% 70.34%
=======================================
Files 538 538
Lines 33328 33328
Branches 2953 2953
=======================================
Hits 23446 23446
Misses 9684 9684
Partials 198 198
Flags with carried forward coverage won't be shown. Click here to find out more. |
24cf036
to
f1a5945
Compare
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.
Notes for reviewers.
.ml-auto { | ||
margin-left: auto !important; | ||
} | ||
|
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.
@import url('@tacc/core-styles/src/lib/_imports/settings/color.css'); | ||
@import url('@tacc/core-styles/dist/settings/color.css'); |
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.
image: taccwma/core-cms:ff737a3 | ||
image: taccwma/core-cms:latest |
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.
Are we ready? Yup. This is what gets us the latest CMS header to sync with. This is tested and reviewed (and wanted) in #1034.
<!-- Core CSS --> | ||
<link id="css-site-font" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" /> | ||
<link id="css-site-header" rel="stylesheet" href="/static/site_cms/css/build/site.header.css" /> |
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.
Why? These are old solutions.
-
…googleapis.com/css?family=Roboto:…
is redundant
{% include "includes/nav_cms.html" with className="navbar-nav" only %} | ||
{% include "includes/nav_cms.html" with className="navbar-nav me-auto" only %} |
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.
To match Core-CMS (which uses Bootstrap 4 mr-auto
).
{% include "includes/nav_search.html" with className="form-inline ml-auto" only %} | ||
{% include "includes/nav_search.html" with className="form-inline" only %} |
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.
To match Core-CMS (which stopped using a margin class here).
- has no effect on CMS (tested _in situ_) - has expected effect on Portal (tested in TACC/Core-Portal#1068)
- has no effect on CMS (tested _in situ_) - has expected effect on Portal (tested in TACC/Core-Portal#1068)
- has no effect on CMS (tested _in situ_) - has expected effect on Portal (tested in TACC/Core-Portal#1068)
* fix: some header styles not scoped with .s-header * fix: different rems give diff header spacing - has no effect on CMS (tested _in situ_) - has expected effect on Portal (tested in TACC/Core-Portal#1068) * refactor: header__nav-link--tall → …--not-expanded * refactor: simplify header navlink padding * fix: padding-block should differ for expand v. not
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.
Gonna try to not need to serve a static file. Marked as draft.
Warning: Introduces padding difference between CMS and Portal header.
Overview
Related
Changes
!important
for old header stylesheetmr-
/ml-
/-right` classesTesting & UI
(excluding known issues below)