mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-09 23:45:21 +02:00
Move transparent? to public interface
This commit is contained in:
parent
a45902488c
commit
51ce4af2b4
1 changed files with 4 additions and 4 deletions
|
@ -61,6 +61,10 @@ class FilledIconComponent < ViewComponent::Base
|
|||
STYLE
|
||||
end
|
||||
|
||||
def transparent?
|
||||
variant.in?(%i[default text])
|
||||
end
|
||||
|
||||
private
|
||||
def solid_bg_class
|
||||
case variant
|
||||
|
@ -71,10 +75,6 @@ class FilledIconComponent < ViewComponent::Base
|
|||
end
|
||||
end
|
||||
|
||||
def transparent?
|
||||
variant.in?(%i[default text])
|
||||
end
|
||||
|
||||
def size_classes
|
||||
SIZES[size][:container_size]
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue