Problem/Motivation
I created a bootstrap5 subtheme and want to modify the horizontal padding for tables.
Steps to reproduce
- In a bootstrap5 subtheme, modify the
table-cell-padding-xvalue in_variables_bootstrap.scss - Build the stylesheet
- Inspect the resulting style.css file or view a page that includes a table and inspect it.
- The horizontal padding for tables has not changed to the value set
Proposed resolution
In bootstrap5/scss/_variables_bootstrap.scss, add !default when setting table-cell-padding-x so it can be overridden by the subtheme.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | patch-applied-cleanly.png | 69.55 KB | anoopsingh92 |
| #4 | table-cell-padding-3273549-4.patch | 372 bytes | shyam_bhatt |
Issue fork bootstrap5-3273549
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
roderickgadellaabsl commentedComment #3
shyam_bhattComment #4
shyam_bhattUpdated the variable with
!default. Please check the patch.Comment #5
shyam_bhattComment #7
anoopsingh92Comment #8
anoopsingh92Hi @Shyam_Bhatt, I reviewed your patch #4. It is applied successfully for me and It looks good to me. Thanks for the patch.

Moving it to RTBC. Thanks.
Comment #10
vladimirausThank you. Compiled and committed.