Skip to content

Conversation

@ArgoZhang
Copy link
Member

@ArgoZhang ArgoZhang commented Jun 9, 2025

Link issues

fixes #6190

Summary By Copilot

Regression?

  • Yes
  • No

Risk

  • High
  • Medium
  • Low

Verification

  • Manual (required)
  • Automated

Packaging changes reviewed?

  • Yes
  • No
  • N/A

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • Merge the latest code from the main branch

Summary by Sourcery

Update BootstrapBlazor to use Bootstrap v5.3.6 by replacing core CSS and JS assets and adjust related code for the new version

Bug Fixes:

Enhancements:

  • Bump Bootstrap dependency to v5.3.6 and refresh CSS and JavaScript files

@bb-auto bb-auto bot added the enhancement New feature or request label Jun 9, 2025
@bb-auto bb-auto bot added this to the 9.7.0 milestone Jun 9, 2025
@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Jun 9, 2025

Reviewer's Guide

This PR upgrades Bootstrap dependency from v5.3.3 to v5.3.6 by replacing the core CSS/JS assets (including RTL and ES-module builds), updating version headers and source maps, and applies housekeeping tweaks in CSS rules and JS utilities for Popper integration and accessibility.

Sequence Diagram: Dropdown Hide Focus Behavior Change in Bootstrap v5.3.6

sequenceDiagram
    actor User
    participant DropdownToggle as "Dropdown Toggle"
    participant DropdownMenu as "Dropdown Menu Component"
    participant Browser as "Browser"

    User->>+DropdownToggle: Interacts to hide dropdown (e.g., click, Esc)
    DropdownToggle->>DropdownMenu: Signal to hide
    DropdownMenu-->>DropdownToggle: Processes hide (animations, state changes)
    DropdownToggle->>DropdownToggle: Updates ARIA attributes (e.g., aria-expanded="false")
    critical "New Focus Behavior on Hide"
        DropdownToggle->>Browser: request focus() on Dropdown Toggle
        Browser-->>DropdownToggle: Focus set to Dropdown Toggle
    end
    DropdownToggle-->>-User: Dropdown hidden, focus returned to toggle
Loading

File-Level Changes

Change Details Files
Upgrade Bootstrap assets to v5.3.6
  • Bump version strings in CSS/JS headers and constants
  • Replace core CSS and JS files with updated v5.3.6 bundles
  • Add new ES module build (bootstrap.esm.min.js)
  • Include updated source maps for CSS and JS
src/BootstrapBlazor/wwwroot/core/bootstrap/css/bootstrap.css
src/BootstrapBlazor/wwwroot/core/bootstrap/css/bootstrap.rtl.css
src/BootstrapBlazor/wwwroot/core/bootstrap/css/bootstrap.min.css
src/BootstrapBlazor/wwwroot/core/bootstrap/css/bootstrap.min.css.map
src/BootstrapBlazor/wwwroot/core/bootstrap/css/bootstrap.css.map
src/BootstrapBlazor/wwwroot/core/bootstrap/css/bootstrap.rtl.min.css.map
src/BootstrapBlazor/wwwroot/core/bootstrap/js/bootstrap.bundle.js
src/BootstrapBlazor/wwwroot/core/bootstrap/js/bootstrap.bundle.min.js
src/BootstrapBlazor/wwwroot/core/bootstrap/js/bootstrap.esm.min.js
src/BootstrapBlazor/wwwroot/core/bootstrap/js/bootstrap.bundle.min.js.map
Consolidate and simplify CSS rules
  • Remove vendor-specific placeholder selectors and obsolete rules
  • Standardize flex shorthand from “1 0 0%” to “1 0 0”
  • Simplify calc expressions for margins and borders
  • Reorder font-size and line-height in display utilities
src/BootstrapBlazor/wwwroot/core/bootstrap/css/bootstrap.css
src/BootstrapBlazor/wwwroot/core/bootstrap/css/bootstrap.rtl.css
Update CSS variables and SVG icons
  • Refresh arrow and accordion button SVG paths
  • Introduce CSS custom properties for light/dark theme icons
  • Adjust modal, toast, and carousel control icon filters
  • Remove deprecated variable fallbacks
src/BootstrapBlazor/wwwroot/core/bootstrap/css/bootstrap.css
src/BootstrapBlazor/wwwroot/core/bootstrap/css/bootstrap.rtl.css
JS refinements and Popper integration
  • Update VERSION constant to 5.3.6
  • Change Popper require errors to reference v2 docs
  • Fix execute and executeAfterTransition function signatures
  • Add explicit focus return in dropdown hide
src/BootstrapBlazor/wwwroot/core/bootstrap/js/bootstrap.bundle.js

Assessment against linked issues

Issue Objective Addressed Explanation
#6190 Bump the Bootstrap dependency to version 5.3.6.

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@codecov
Copy link

codecov bot commented Jun 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (015b93d) to head (a00478d).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #6191   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          704       704           
  Lines        31099     31099           
  Branches      4394      4394           
=========================================
  Hits         31099     31099           
Flag Coverage Δ
BB 100.00% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ArgoZhang ArgoZhang merged commit d3a9ef4 into main Jun 9, 2025
6 checks passed
@ArgoZhang ArgoZhang deleted the chore-Bootstrap branch June 9, 2025 10:56
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @ArgoZhang - I've reviewed your changes - here's some feedback:

  • It looks like you manually replaced the raw Bootstrap CSS/JS files—consider switching to an npm or NuGet package reference for Bootstrap so future upgrades can be automated instead of committing huge diffs of third-party code.
  • Double-check that your application (package.json, index.html, import paths, etc.) is updated to reference the new ES module build (bootstrap.esm.min.js) and the bumped version (5.3.6) everywhere it’s used.
Here's what I looked at during the review
  • 🟡 General issues: 2 issues found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

});
};
const execute = (possibleCallback, args = [], defaultValue = possibleCallback) => {
return typeof possibleCallback === 'function' ? possibleCallback(...args) : defaultValue;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (bug_risk): Incorrect use of Function.call in execute helper

Using call(...args) changes the this context and argument handling. Consider reverting to the previous approach or use apply if a specific context is needed.

if (!this._isEnabled) {
return;
}
this._activeTrigger.click = !this._activeTrigger.click;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (bug_risk): Removed click-trigger toggle in dropdown

Please verify that the dropdown still toggles correctly on repeated clicks after this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(Bootstrap): bump dependence 5.3.6

2 participants