Skip to content

Commit 635d9c4

Browse files
authored
Migrate the typography components to align with Phlex conversions (#168)
1 parent 651f708 commit 635d9c4

File tree

4 files changed

+14
-22
lines changed

4 files changed

+14
-22
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module Components
2+
module Typography
3+
class InlineLink < Components::Base
4+
def initialize(href:, **attrs)
5+
@href = href
6+
@attrs = attrs
7+
end
8+
9+
def view_template(&)
10+
a(href: @href, **@attrs, class: "text-primary font-medium hover:underline underline-offset-4", &)
11+
end
12+
end
13+
end
14+
end

app/views/components/test_view.rb

Lines changed: 0 additions & 10 deletions
This file was deleted.

app/views/components/typography/inline_link.rb

Lines changed: 0 additions & 12 deletions
This file was deleted.

app/views/components/typography_list.rb

Whitespace-only changes.

0 commit comments

Comments
 (0)