lowcoder-org / lowcoder

🔥 🔥 🔥 The Open Source Retool, Tooljet and Appsmith Alternative
https://www.lowcoder.cloud/
GNU Affero General Public License v3.0
849 stars 174 forks source link

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

Open Banbury opened 3 months ago

Banbury commented 3 months ago

Is there an existing issue for this?

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

Environment

Environment: Docker Version: 2.4.1-2.4.1 #fdffe017

Additional Information

No response

adnanqaops commented 3 months ago

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 commented 3 months ago

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

Banbury commented 3 months ago

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

FalkWolsky commented 3 months ago

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.