Fix Border styling with Bootstrap library hard overrides over borders

Created on 1 September 2021, almost 3 years ago
Updated 27 July 2023, 11 months ago

Problem/Motivation

Having

.border {
  border: 1px solid #dee2e6 !important;
}

In the front-end Bootstrap theme will reset the border styling for:

  • Border width
  • Border style
  • Border color

with !important
The theme with higher wight than the module wight and order of libraries.

Steps to reproduce

Given that the "Bootstrap Style" module was installed and configured to be used on a content type with layout builder
And any "Bootstrap 4/5" theme was installed and configured as the default theme
When a block or a section is configured with the "Border width" or "Border style"
Then the selected border width not being reflected on the layout builder editing page
And no change to border width on the front-end too

Before

β†’

β†’

Proposed resolution

Fix this from the border plugin library. By adding a body to border-classes.scss

Remaining tasks

  • βœ… File an issue about this project
  • βœ… Addition/Change/Update/Fix to this project
  • βœ… Testing to ensure no regression
  • βœ… Automated unit/functional testing coverage
  • βž– Developer Documentation support on feature change/addition
  • βž– User Guide Documentation support on feature change/addition
  • βœ… Code review from Bootstrap Styles team member
  • βœ… Full testing and approval
  • βœ… Credit contributors
  • βœ… Review with the product owner
  • βœ… Release bootstrap_styles-1.1.1 β†’

User interface changes

After

β†’

β†’

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • Issue #3230802 β†’ : Fixed Border styling with Bootstrap library hard overrides over borders
πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡―πŸ‡΄Jordan Rajab Natshah Jordan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024