wp-papi / papi

:rocket: WordPress Page Type API with custom fields
https://wp-papi.github.io
MIT License
263 stars 32 forks source link

fix WP forms.css and select2 styles conflict #119

Closed entr closed 9 years ago

entr commented 9 years ago

fixes #105

entr commented 9 years ago

Actually forms.css doesn't conflict. Problem seems to be the following rule

.papi-table tr td input, .papi-table tr td select, .papi-table tr td textarea {
  width: 99.5%;
}

overriding .select2-hidden-accessible width rule, to be clear.

frozzare commented 9 years ago

Won't this fix break the accessibility in select2?

entr commented 9 years ago

It just restores vendor's width rule. If we assume select2 author takes care of accessibility then this is fixing it not braking.

frozzare commented 9 years ago

Thanks. Just looked at select2 source css and it's the same width.