Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Floating input with appended/prepended text #1547

Open
morsik opened this issue Apr 25, 2023 · 2 comments
Open

[FEATURE] Floating input with appended/prepended text #1547

morsik opened this issue Apr 25, 2023 · 2 comments
Labels
feature request New feature/change requested

Comments

@morsik
Copy link

morsik commented Apr 25, 2023

Hi,

so, we have nice "Floating inputs" component (originally Bootstrap-provided):

Screenshot 2023-04-25 at 14 23 36

as well as we have nice "Inputs with prepended/appended text" (also originally Bootstrap-provided):

Screenshot 2023-04-25 at 14 24 11

The idea:

Both are great, but what about making mix of both of them as a custom component? I tried to play around with making appended text to input with floating label, but wasn't able to so it's clear that it's just not supported (as it's not anywhere in examples nor documentation).

So the idea is simple, Floating input should be "as is", but lower part where the input is, should be able to use all those "prepended/appended components" inside lower part.

The only way I was able to achive something similar to what I have is this code below, but this have broken vertical alignment of appended text as well as label part is broken (clicking on label causes it to disappear as it's underneath):

<div class="form-floating input-group input-group-flat">
  <input type="text" name="tt" id="tt" class="form-control text-end pe-0" value="25" autocomplete="off">
  <span class="input-group-text">
    °C
  </span>
  <label for="tt">Temperature</label>
</div>

Screenshot 2023-04-25 at 14 35 11

Feature like this may make things even more nicer are well are more tight.

@BG-Software-BG BG-Software-BG added the feature request New feature/change requested label Dec 8, 2023
Copy link
Contributor

github-actions bot commented Dec 3, 2024

This issue is stale because it has been open for 360 days with no activity.

@github-actions github-actions bot added the stale Lack of activity label Dec 3, 2024
@morsik
Copy link
Author

morsik commented Dec 4, 2024

@codecalm hey! Any ideas about this? ;)

@github-actions github-actions bot removed the stale Lack of activity label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature/change requested
Projects
None yet
Development

No branches or pull requests

2 participants