Skip to content

Commit

Permalink
Revert "make select classes overrideable"
Browse files Browse the repository at this point in the history
This reverts commit 33050da.
  • Loading branch information
taylordowns2000 committed Aug 14, 2024
1 parent 33050da commit c422e6c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/lightning_web/live/components/form.ex
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,6 @@ defmodule LightningWeb.Components.Form do
"""
end

attr :class, :any, default: ""

def select(assigns) do
select_classes = ~w[
block
Expand All @@ -450,7 +448,7 @@ defmodule LightningWeb.Components.Form do
focus:ring-primary-200
focus:ring-opacity-50
disabled:cursor-not-allowed
] ++ List.wrap(assigns.class)
]

opts = assigns_to_attributes(assigns) ++ [class: select_classes]

Expand Down

0 comments on commit c422e6c

Please sign in to comment.