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

[Feat]: Floating button - enable fixed position and z-index by properties #1008

Open
1 task done
Banbury opened this issue Jul 5, 2024 · 4 comments
Open
1 task done
Assignees
Labels
Components Dedicated to Frontend Visual Components

Comments

@Banbury
Copy link

Banbury commented Jul 5, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The floating button acts like a element with absolute positioning. It doesn't float above the other components and it isn't fixed to the screen. Also the primary theme doesn't show the icon.

Expected Behavior

The floating button should always be displayed above all other components. It should stay in a fixed position on the screen, if the page is scrolled.

Steps to reproduce

  • Add a floating button to a page
  • Scroll the page
  • The button moves with the page
  • The button cannot be positioned above other components on the same page

Environment

Environment: Docker
Version: 2.4.1-2.4.1 #fdffe017

Additional Information

No response

@adnanqaops
Copy link
Collaborator

Kindly, note that we need to add the "fixed", "position" and "z-Index" as style property on Float button component, so that users have an easier support to set this.

@Banbury
Copy link
Author

Banbury commented Jul 5, 2024

I do think, that a button that is called Floating Button, should float by default. Otherwise you could just use a standard button.

@Banbury
Copy link
Author

Banbury commented Jul 5, 2024

And I just noticed, that the primary style is white on white, which makes the icon invisible.

@FalkWolsky FalkWolsky changed the title [Bug]: The floating button doesn't float [Feat]: Floating button - enable fixed position and z-index by properties Jul 7, 2024
@FalkWolsky
Copy link
Contributor

We changed the Issue to a feature issue. Cause the Button by itself was pretty fine.
Lowcoder offers a lot of flexibilities and your usecase (the most expected one indeed) is only one of many for the Floating Button. What we will do is to extend the floating button to have a UI in the Style Properties allowing easier to set your desired attributes. "Fixed position", "Z-Index" and "top / right / bottom / left" placement.

@FalkWolsky FalkWolsky self-assigned this Jul 7, 2024
@FalkWolsky FalkWolsky added the Components Dedicated to Frontend Visual Components label Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Components Dedicated to Frontend Visual Components
Projects
Status: 🆕 New
Development

No branches or pull requests

3 participants