Comments (2)
I guess #6440 will solve this problem
from primereact.
I just realised it was another css file that was colliding with the styles of FloatLabel.
Which was making the span.float-label be centered, but it has no effect on the label, thus creating that strange effect:
With inspector
I guess that using css files, instead of the theme will cause this type of problems, so it is not guaranteed for bugs like this not to appear when people use custom css like in my case.
Anyway, I've been investigating, and I noticed that the problem happens because both the span (container) and the label have position: relative
, therefore label does not depend on the position of span, but on the position of the outer container. This could be fixed making the span
that contains the input
and the label
have position: absolute
.
I'm not sure if this behaviour is considered a feature or a bug.
from primereact.
Related Issues (20)
- Typo error on `PrimeFlex` section of the Theming documentation HOT 1
- Readme typo HOT 1
- Sidebar: Headless Sidebar is hidden in Small and Medium-Sized Views HOT 1
- PanelMenu MenuItem Id Prop Not Passed
- DataTable: Row groups are duplicated when the groupRowsBy value is changed
- onSort return only one value on every event HOT 2
- MeterGroup: Percentages always based on max 100 HOT 3
- DataTable Dropdown Filter: Value is not getting updated upon selection HOT 4
- Chart property "onMouseDown" not typed HOT 1
- TabView | Inkbar is visible for lara
- Option with value 0 has different behavior than any other number in dropdown HOT 6
- Cannot npm link primereact on local project
- DataTable: Clicking on a checkbox in the header of a sortable column will sort the column HOT 2
- FileUpload: How can I preload a file into the component?
- Password component width class w-full HOT 2
- PrimeReact Timeline Component
- Spinner/Loader animation doesn't work HOT 5
- DataTable in Dialog reads everything in dialog (with NVDA tool)
- Carousel: : Bug Report - PrimeReact Carousel Sliding Function Interruption on Radio Button Click
- Dropdown: can't use "checkIcon" pt option HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from primereact.