Skip to content
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

Dark mode: Dropdown variant #2323

Merged
merged 4 commits into from
Nov 13, 2023

Conversation

louismaximepiton
Copy link
Member

@louismaximepiton louismaximepiton commented Oct 18, 2023

Description

Dropped :not(.toggle-plit-dropdown) rule inside .dropdown-toggle and introduce it as .btn-dropdown

Searched for every .dropdown-toggle and related .btn-secondary and decide whether it's a .toggle-split-dropdown, it should change to the new .btn-dropdown or let it as Bootstrap:

  • CHANGELOG.md: nothing to do.
  • js/src/scrollspy.js: nothing to do.
  • js/src/tab.js: nothing to do.
  • js/tests/unit/dropdown.spec.js: nothing to do.
  • js/tests/unit/tab.spec.js: nothing to do.
  • js/tests/visual/dropdown.html:
    • .btn-secondary.dropdown-toggle -> .btn-dropdown.dropdown-toggle
    • Added some .dropdown-toggle-split where needed to have the good rendering.
  • js/tests/visual/scrollspy.html: nothing to do.
  • scss/_button-group.scss: nothing to do
  • scss/_dropdown.scss: nothing to do
  • scss/_input-group.scss: nothing to do
  • scss/_navbar.scss: nothing to do
  • site/content/docs/5.3/dark-mode.md:
    • Replaced all the .btn-secondary.dropdown-toggle by .btn-dropdown.dropdown-toggle in the corresponding examples in #buttons
    • Replaced all the .btn-secondary.dropdown-toggle by .btn-dropdown.dropdown-toggle in the corresponding examples in #dropdowns
    • Replaced all the .btn-secondary by .btn-outline-secondary in the corresponding examples in #input-group
  • site/content/docs/5.3/migration.md: nothing to do.
  • site/content/docs/5.3/components/button-group.md: Changed .btn-secondary to .btn-outline-secondary in the doc.
  • site/content/docs/5.3/components/dropdowns.md: Replaced all the .btn-secondary.dropdown-toggle by .btn-dropdown.dropdown-toggle in the corresponding examples.
  • site/content/docs/5.3/components/navbar.md: nothing to do.
  • site/content/docs/5.3/components/navs-tabs.md: nothing to do.
  • site/content/docs/5.3/components/offcanvas.md: Replaced all the .btn-secondary.dropdown-toggle by .btn-dropdown.dropdown-toggle in the corresponding examples.
  • site/content/docs/5.3/components/scrollspy.md: nothing to do.
  • site/content/docs/5.3/customize/color-modes.md:
    • Replaced all the .btn-secondary.dropdown-toggle by .btn-dropdown.dropdown-toggle in the corresponding examples.
    • Changed site/assets/scss/_content.scss
  • site/content/docs/5.3/customize/options.md: nothing to do.
  • site/content/docs/5.3/forms/input-group.md: Replaced all the .btn-secondary.dropdown-toggle by .btn-dropdown.dropdown-toggle in the corresponding examples.
  • site/layout/_default/examples.html: nothing to do.
  • site/layout/partials/docs-navbar.html: nothing to do.
  • site/layout/partials/docs-versions.html: nothing to do.
  • site/layout/partials/home/plugins.html: ⚠️ .btn-primary was let.

⚠️ Folks might recheck all their dropdowns to make sure they keep the same rendering.

Links

TODO

  • Take back the doc of dropdowns from Bs
  • Hide it with <details><summary> + Design callouts
  • Remove unused CSS related to .dropdown-toggle
  • Update dark mode example page accordingly
  • Do the same process for .dropdown-toggle-split

Misc

.dropdown isn't used at all ❓

@louismaximepiton louismaximepiton added the color mode Temporary label to highlight color mode issues label Oct 18, 2023
@netlify
Copy link

netlify bot commented Oct 18, 2023

Deploy Preview for boosted ready!

Name Link
🔨 Latest commit 7668643
🔍 Latest deploy log https://app.netlify.com/sites/boosted/deploys/6551d2057da86500083c9f29
😎 Deploy Preview https://deploy-preview-2323--boosted.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@louismaximepiton louismaximepiton marked this pull request as ready for review October 18, 2023 14:57
@louismaximepiton louismaximepiton force-pushed the main-lmp-dropdown-variant branch 2 times, most recently from ea24dbe to 12178c8 Compare October 25, 2023 07:27
@julien-deramond julien-deramond changed the title Dark mode? Dropdown variant Dark mode: Dropdown variant Oct 27, 2023
@julien-deramond julien-deramond force-pushed the main-jd-dark-mode branch 3 times, most recently from 03af5c3 to f49a3ee Compare November 3, 2023 11:30
@julien-deramond julien-deramond force-pushed the main-lmp-dropdown-variant branch from 12178c8 to 49bfcbe Compare November 3, 2023 11:48
@julien-deramond julien-deramond force-pushed the main-jd-dark-mode branch 2 times, most recently from 35328ca to f0b8a1e Compare November 6, 2023 07:18
@julien-deramond julien-deramond force-pushed the main-lmp-dropdown-variant branch from 49bfcbe to 24c5d9b Compare November 6, 2023 11:02
@julien-deramond julien-deramond force-pushed the main-lmp-dropdown-variant branch 2 times, most recently from 0ea17e5 to 6b60f7a Compare November 8, 2023 08:19
@julien-deramond

This comment was marked as resolved.

Update dropdown doc

Update dark-mode page

Fix split dropdown issue + design + Add dark mode checks
@julien-deramond julien-deramond force-pushed the main-lmp-dropdown-variant branch from 4809a33 to 5d65a1a Compare November 13, 2023 06:50
@julien-deramond julien-deramond self-requested a review November 13, 2023 07:36
@julien-deramond julien-deramond merged commit e711ef8 into main-jd-dark-mode Nov 13, 2023
@julien-deramond julien-deramond deleted the main-lmp-dropdown-variant branch November 13, 2023 07:39
@julien-deramond julien-deramond mentioned this pull request Nov 13, 2023
julien-deramond added a commit that referenced this pull request Nov 15, 2023
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
julien-deramond added a commit that referenced this pull request Nov 27, 2023
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
julien-deramond added a commit that referenced this pull request Nov 27, 2023
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
julien-deramond added a commit that referenced this pull request Nov 27, 2023
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
julien-deramond added a commit that referenced this pull request Nov 29, 2023
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
julien-deramond added a commit that referenced this pull request Nov 30, 2023
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
julien-deramond added a commit that referenced this pull request Dec 1, 2023
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
julien-deramond added a commit that referenced this pull request Dec 4, 2023
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
julien-deramond added a commit that referenced this pull request Dec 8, 2023
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
julien-deramond added a commit that referenced this pull request Dec 15, 2023
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
julien-deramond added a commit that referenced this pull request Dec 18, 2023
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
julien-deramond added a commit that referenced this pull request Dec 21, 2023
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
julien-deramond added a commit that referenced this pull request Dec 26, 2023
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
julien-deramond added a commit that referenced this pull request Dec 27, 2023
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
julien-deramond added a commit that referenced this pull request Jan 2, 2024
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
color mode Temporary label to highlight color mode issues
Projects
Development

Successfully merging this pull request may close these issues.

2 participants