Comments (4)
Thanks, working as expected now!
from formkit.
I think, this can be fixed on the theme level.
But, until it's fixed i wanted to do a local fix by overriding classes
.
I have tried this, but it doesn't work. How to properly pass path to dropdown listitem element? I have also tried using generateClasses
, it provides a way to specify which widget i want to style, but it does not support object syntax, and i like to use object syntax, because it's much better than plain text.
export const formKitConfig = defaultConfig({
config: {
rootClasses,
classes: {
'family:dropdown__listitem': {
$reset: true,
'text-red': true,
},
},
},
})
from formkit.
I'll look into correcting this at the theme level, but you can try this in your config. generateClasses
is going to be the play here:
import { generateClasses } from '@formkit/themes'
export const formKitConfig = defaultConfig({
config: {
rootClasses,
classes: generateClasses({
'family:dropdown': {
listitem: {
$reset: true,
'text-red': true,
}
},
}),
},
})
Here's a playground showing it in action: https://formkit.link/9c825b7754884c8a79b83dc0a88d5ed9
You can write your own selector for listitem
if you want without generateClasses
but you'll need to do your own filtering in a function to make sure it only applies to dropdown family items. Here's the relevant source code:
formkit/packages/themes/src/index.ts
Line 44 in ab48279
from formkit.
@last-partizan — This is fixed. If you regenerate your theme you should get the new styling.
from formkit.
Related Issues (20)
- Bullets are displayed in repeater inside schema HOT 2
- Focus state triggered when setting value programmatically HOT 2
- Add support for border and controls for collapsing the group and list type
- Automatically position datepicker panel wrapper
- Currency input not handling min and max with step of 1000 well.
- [Pro] Slider: Chart breaking after data update
- [pro] pro components not rendering in nuxt project HOT 1
- [Curreny] Option to hide the currency
- Datepicker - Unable to set custom validation message for rule 'invalidDate'
- Improve error message when duplicate keys are detected (in __DEV__) HOT 3
- `datepicker`: Weekdays do not honor locale HOT 2
- Forms remain disabled after rejection of submit handler promise
- Custom classes for text inputs broken HOT 2
- repeater using class names as invalid selector with `querySelector` HOT 2
- Cannot click into text input within a repeater on Firefox
- Datepicker Dual Entry true dirty state
- Datepicker overflow when setting date to the 31st of a month.
- Autocomplete single select should have an option of receiving the user's inputted text as a value, even if an option is not selected.
- multi-step slot tabLabel HOT 1
- How to get defaults from schema instead of from v-model on mount HOT 3
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 formkit.