Skip to content

Remove chevron for selects with a non-default size #137

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
May 12, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
wip
  • Loading branch information
thecrypticace committed Feb 24, 2023
commit b7e8f76f674ec95ecd004b7dbaed4303073cde5a
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const forms = plugin.withOptions(function (options = { strategy: undefined }) {
},
{
base: ['select'],
class: ['.form-select:where([size="1"], :not([size]))'],
class: ['.form-select'],
styles: {
'background-image': `url("${svgToDataUri(
`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20"><path stroke="${resolveColor(
Expand All @@ -144,7 +144,7 @@ const forms = plugin.withOptions(function (options = { strategy: undefined }) {
},
{
base: ['[multiple]', '[size]:where(:not([size="1"]))'],
class: null,
class: ['.form-select[size]:where(:not([size="1"]))'],
styles: {
'background-image': 'initial',
'background-position': 'initial',
Expand Down