Skip to content

Commit 3efd30a

Browse files
committed
[Bug Fix] Install Typography with Tooltip (#296)
1 parent c13b7e1 commit 3efd30a

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

gem/lib/generators/ruby_ui/dependencies.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,8 @@ select:
9696
- "@floating-ui/dom"
9797

9898
tooltip:
99+
components:
100+
- "Typography"
101+
99102
js_packages:
100103
- "@floating-ui/dom"

gem/test/generators/component_generator_test.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,11 @@ def test_date_picker_installs_composed_components
7575

7676
assert_equal ["Input", "Popover", "Calendar"], dependencies.fetch("date_picker").fetch("components")
7777
end
78+
79+
def test_tooltip_installs_typography_for_text_component
80+
dependencies_path = File.expand_path("../../lib/generators/ruby_ui/dependencies.yml", __dir__)
81+
dependencies = YAML.load_file(dependencies_path)
82+
83+
assert_includes dependencies.fetch("tooltip").fetch("components"), "Typography"
84+
end
7885
end

0 commit comments

Comments
 (0)