-
Notifications
You must be signed in to change notification settings - Fork 905
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
Upgrade to Bootstrap 5.2 #470
Comments
Suggestion: Use Tailwind CSS instead. 😄 |
Is not Docsy only, its all themes..., is all..., in netlify |
Hmm, didn't realize how many things it wasn't compatible with. :( I'll see if I can find any more general Hugo/Netlify bootstrap 5 issues. |
I took a look, and after bumping bootstrap from As they found, there are other small UX differences that are visible just in the user guide. See a dynamic view of the 517 Netlify preview for comparison The Bootstrap migration guide should help with a lot of these https://getbootstrap.com/docs/5.0/migration/. I'm not 100% across this project, testing wise, how you enumerate all the customisations your theme has, etc. |
Extra incentive to schedule migration to v5 before year's end:
Sources: |
Name changed so we can use this to track actually making the necessary update. |
Thanks @LisaFC. FYI, I've set the milestone to Q3 :). |
Moved to 22Q4. Given the deadlines we're facing re. BS v4 EOL, we really should schedule this work to happen soon:
|
I've updated the title to reflect that this is an upgrade to v5 that stops at 5.2. I was hoping to pickup 5.3, but it is still in alpha, and I don't want to delay a release of Docsy any longer. Other updates make to this issue:
I've created a followup meta issue to track the key changes we'll want to make after this issue is closed: |
Bootstrap 5 has some changes that seem to break Docsy site builds #304 #464.
(Edit: @chalin)
Info: the last BSv4 build
A link to the last edition of the User Guide that was build with BSv4: https://deploy-preview-1356--docsydocs.netlify.app. This link was taken from the last PR/commit of v0.6.x.
Prep
Tasks
All of the section headings below that are hyperlinks, link to a section of the Bootstrap 5.2 migration guide of the corresponding name. A GitHub user name on a section or subsection heading declares that person as taking responsibility for making the corresponding changes to Docsy.
✅ Dependencies - @chalin
Drop jQuery #1436
✅ Sass - @chalin
color-yiq()
function and related variables tocolor-contrast()
, etc. For details, see corresponding Sass entry:media-breakpoint-down()
change argument to be next breakpoint of higher value[BSv5] Adjust media-breakpoint-down() argument #1367
Projects will have to make a similar change to their styles.
$enable-print-styles
N/Acolor()
etc. N/Acolor-level
etc. N/Areduced-motion
etc. N/Abg-gradient-variant()
is gone, etc.bg-gradient-variant()
mixin #1369scale-color
N/ACustomization:
✅ Color system - @chalin
While I used to think that Color system changes were optional, I've since changed my mind. IMHO, without #1388 we would have gotten weird behavior. For details see the issue's opening comment.
This change only needs to be done by Docsy, not projects using Docsy.
✅ Grid updates - @chalin
position: relative
applied ....order-*
classes that often went unused (beyond 5 it seems). N/A.media
component. Regex:\b(^|[^@])media($|[^-])
✅ Content, Reboot, etc - @chalin
display-*
typography has changed (this is why the "Welcome to Docsy" on the homepage looks so different).$display*
variables have been replaced.Table styles have changed. For details, see #1473.
⏭️ RTL - @chalin
✅ Forms
Docsy's only use of
form
elements is for search, and it's a very minimal. Docsy doesn't use any of the form-specific classes that were deprecated.✅ Components
bg-gradient-variant()
mixin #1369.$enable-rounded
variable #1452--bs-breadcrumb-divider
for easy customization)<li>
s -[BS5] Adjust HTML of dropdowns for version and lang #1415
.active
class can no longer be applied to.nav-item
- N/A.arrow
to.popover-arrow
- [BSv5] Offline-search adjust arrow class name #1427✅ Utilities - @chalin
Regex:
\b([mp])[lr](-([0-5]|auto))\b
\b((float|border|rounded|text)-)(left|right)\b
✅ Helpers - @chalin
✅ JavaScript
Other
Post-upgrade checks / changes
The text was updated successfully, but these errors were encountered: