1
0
Fork 0
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:
Zach Gollwitzer 2025-04-30 18:04:00 -04:00
parent a45902488c
commit 51ce4af2b4

View file

@ -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