feat: core-styles v2 header#1068
Merged
Merged
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. 🚀 New features to boost your workflow:
|
24cf036 to
f1a5945
Compare
wesleyboar
commented
Feb 28, 2025
Member
Author
wesleyboar
left a comment
There was a problem hiding this comment.
Notes for reviewers.
Comment on lines
-3
to
-6
| .ml-auto { | ||
| margin-left: auto !important; | ||
| } | ||
|
|
Member
Author
There was a problem hiding this comment.
| @@ -1,4 +1,4 @@ | |||
| @import url('@tacc/core-styles/src/lib/_imports/settings/color.css'); | |||
| @import url('@tacc/core-styles/dist/settings/color.css'); | |||
Member
Author
Comment on lines
-19
to
-21
| <!-- 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" /> |
Member
Author
There was a problem hiding this comment.
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 %} |
Member
Author
There was a problem hiding this comment.
To match Core-CMS (which uses Bootstrap 4 mr-auto).
| {% include "includes/nav_cms.html" with className="navbar-nav me-auto" only %} | ||
|
|
||
| {% include "includes/nav_search.html" with className="form-inline ml-auto" only %} | ||
| {% include "includes/nav_search.html" with className="form-inline" only %} |
Member
Author
There was a problem hiding this comment.
To match Core-CMS (which stopped using a margin class here).
wesleyboar
added a commit
to TACC/Core-Styles
that referenced
this pull request
Mar 1, 2025
- has no effect on CMS (tested _in situ_) - has expected effect on Portal (tested in TACC/Core-Portal#1068)
wesleyboar
added a commit
to TACC/Core-Styles
that referenced
this pull request
Mar 1, 2025
- has no effect on CMS (tested _in situ_) - has expected effect on Portal (tested in TACC/Core-Portal#1068)
wesleyboar
added a commit
to TACC/Core-Styles
that referenced
this pull request
Mar 1, 2025
- has no effect on CMS (tested _in situ_) - has expected effect on Portal (tested in TACC/Core-Portal#1068)
wesleyboar
added a commit
to TACC/Core-Styles
that referenced
this pull request
Mar 1, 2025
* 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
wesleyboar
commented
Mar 1, 2025
Member
Author
wesleyboar
left a comment
There was a problem hiding this comment.
Gonna try to not need to serve a static file. Marked as draft.
This was referenced Mar 3, 2025
Warning: Introduces padding difference between CMS and Portal header.
This was referenced Mar 3, 2025
Portal nav alignemnt changes on CMS, because CMS uses Bootstrap 4. This release accomodates Bootstrap 5 for dropdown menu alignment.
rstijerina
approved these changes
Mar 17, 2025
This file contains hidden or 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
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
Important
Upon merge, notify @shayanaijaz, so he can update Digital Rocks Portal branch(es).
Related
Changes
!importantfor old header stylesheetmr-/ml-/-rightclassesTesting & UI
(excluding known issues below)