Problem/Motivation
Drupal core provides a form-text class to some fields (i. e. text fields). form-text class also has a special meaning in Bootstrap. So this collides in some points and Bootstrap5 theme is setting $form-text-margin-top variable to fix this issue I suppose.
But this does also affect the "regular" use of the Bootstrap form-text class, and you may not be able to easily override the variable yourself.
Steps to reproduce
Proposed resolution
I would propose to not set the Bootstrap variable, but instead fix the issue in the Drupal styles, by setting a zero margin to input.form-text selector. This fixes the issue with the form-text class from Drupal, but still let us make use of the Bootstrap form-text class if we want to and override the Bootstrap variable in case.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork bootstrap5-3483421
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
stefan.kornComment #4
stefan.kornreroll with latest head
Comment #5
jannakha commentedthank you for your contribution.
tested and ready to be merged in.
Comment #6
stefan.kornreroll with latest head
Comment #7
vladimirausThank you! Committed.