Comments (8)
Try this.
<html>
<body>
<div class="component"></div>
</body>
</html>
following CSS
.component { color: black; } button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; }
Passing the above HTML and CSS through the CLI
The resulting CSS is as followed
.component { color: black; } [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; }
The generated CSS should be
.component { color: black; }
I found this here.
from tailwindcss-forms.
I was experiencing this on a [type=password]
while compiling CSS for a Shopify theme - turned out the content
rules weren't looking correctly into sub-folders so it was skipping the file.
from tailwindcss-forms.
@fulljames how did you solve this?
from tailwindcss-forms.
@fulljames how did you solve this?
I tweaked the content
section of the purge
settings tailwind.config.js, e.g. changing './templates/*.liquid'
to './templates/**/*.liquid'
to look into sub-directories.
purge: {
enabled: true,
content: [
'./layout/*.liquid',
'./templates/**/*.liquid',
'./sections/*.liquid',
'./snippets/*.liquid',
],
},
from tailwindcss-forms.
@fulljames how did you solve this?
I tweaked the
content
section of thepurge
settings tailwind.config.js, e.g. changing'./templates/*.liquid'
to'./templates/**/*.liquid'
to look into sub-directories.purge: { enabled: true, content: [ './layout/*.liquid', './templates/**/*.liquid', './sections/*.liquid', './snippets/*.liquid', ], },
@fulljames We're already doing this and are still experiencing the issue with a password field not getting the same styles applied as other input types. 😕
from tailwindcss-forms.
@fulljames how did you solve this?
I tweaked the
content
section of thepurge
settings tailwind.config.js, e.g. changing'./templates/*.liquid'
to'./templates/**/*.liquid'
to look into sub-directories.purge: {
enabled: true,
content: [
'./layout/*.liquid',
'./templates/**/*.liquid',
'./sections/*.liquid',
'./snippets/*.liquid',
],
},
@fulljames We're already doing this and are still experiencing the issue with a password field not getting the same styles applied as other input types. 😕
Did you try adding "type"
to the allowlist? (See snippet of the description above)
from tailwindcss-forms.
We've decided to go and update all our dependencies first (a bit of a nightmare). Once we achieve that, we'll see where we stand (it could be a while), but we'll try the allowlist
if we need to.
For now, this isn't a major problem as it only affects one infrequently used form in our back office web app.
from tailwindcss-forms.
Hey! Thank you for your bug report!
Much appreciated! 🙏
Make sure that you provide all the paths to your files/content in purge: []
or purge: { content: [] }
, otherwise purge will indeed purge these styles.
https://tailwindcss.com/docs/optimizing-for-production#removing-unused-css
from tailwindcss-forms.
Related Issues (20)
- CSS color-adjust property is deprecated
- Invalid padding for <select> in Firefox HOT 1
- No longer works with @nuxtjs/tailwindcss - 5.1.2 HOT 1
- "MODULE_NOT_FOUND" if tailwind config is in another directory HOT 3
- Tailwindcss/forms failed to install HOT 2
- input should always default to [type='text'] styling. HOT 4
- input type="checkbox" { @apply rounded-full; } leaving syntax error expecting { instead of = HOT 1
- input [type="checkbox"] { @apply rounded-full; } does not work HOT 1
- Placeholder color not compatible with css variables HOT 3
- Adding the plugin breaks TailwindCSS extension in VSCode on macOS HOT 1
- Tailwindcss/forms and other plugin compatibility issue (DaisyUI) HOT 2
- Select with size option shows chevron HOT 4
- Outdated installation instructions HOT 1
- next.js | Error: Cannot find module '@tailwindcss/forms' HOT 1
- Disable tailwindcss-forms for a specific form HOT 2
- appearance-none not working for select tag
- Select input options in Chrome not displaying properly HOT 4
- 'require' not define, cannot import plugin to tailwind config HOT 3
- How to remove the caret in the select input? HOT 1
- Date length error 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 tailwindcss-forms.