Skip to content

Conversation

dfsmania
Copy link
Contributor

@dfsmania dfsmania commented Sep 4, 2025

Summary

This PR fixes an issue with floating labels in Firefox where labels appear in the wrong position due to :-moz-placeholder rules being generated in the compiled CSS.

Fix #5901

Changes

Browserslist update

+ not kaios <= 2.5 # fix floating label issues in Firefox (see https://github.com/postcss/autoprefixer/issues/1533)
  • This prevents Autoprefixer from generating obsolete -moz-placeholder selectors.
  • Bootstrap applies the same workaround in their own Browserslist config.
  • Without this change, Firefox treats inputs as if they always contain content, breaking floating labels.

Watch task update

- "watch-css-main": "nodemon --watch src/scss/ --ext scss --exec \"npm-run-all css-lint css-compile copy-assets\"",
+ "watch-css-main": "nodemon --watch src/scss/ --ext scss --exec \"npm-run-all css-lint css-compile css-prefix copy-assets\"",
  • Adds css-prefix command to watch-css-main task.
  • This ensures npm run dev applies the same PostCSS prefixing step as npm run production.
  • Keeps development and production builds consistent, so issues like the Firefox floating label bug can be detected early.

@danny007in @puikinsh please merge as soon as you can, thanks!

Copy link

netlify bot commented Sep 4, 2025

Deploy Preview for adminlte-v4 ready!

Name Link
🔨 Latest commit 8deb18b
🔍 Latest deploy log https://app.netlify.com/projects/adminlte-v4/deploys/68b8f3b2387f310008b69d65
😎 Deploy Preview https://deploy-preview-5906--adminlte-v4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@dfsmania
Copy link
Contributor Author

Hi @puikinsh and @danny007in, I hope you’re doing well. I wanted to check if this package is still being maintained. I’ve submitted some fixes recently and would love to see them included in a new release candidate. Should I wait for an update, or would you recommend moving forward with a fork? I just want to know how to proceed and where to submit future work for this package. Regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Floating labels problem with Firefox browser
1 participant