Seeking to implement floating labels in Hebrew using bootstrap v5.2, I encountered a challenge. When switching the direction to rtl and clicking on the input box, the label slides towards the center.
Here is my code snippet:
<div class="form-floating mb-3" dir="rtl">
<input class="form-control" id="title" placeholder="כותרת"></input>
<label for="title">כותרת</label>
</div>
I attempted to only switch the direction back to ltr in the label, which did resolve the issue, however, it did not provide an aesthetically pleasing look with Hebrew (as it sticks to the left side of the box).