We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d187dd2 + 84aebbb commit 53eecbaCopy full SHA for 53eecba
app/components/alchemy/ingredients/headline_editor.rb
@@ -61,7 +61,7 @@ def input_field
61
62
def css_classes
63
super + [
64
- has_level_select? ? "with-level-select" : nil,
+ level_options.any? ? "with-level-select" : nil,
65
has_size_select? ? "with-size-select" : nil
66
].compact
67
end
spec/components/alchemy/ingredients/headline_editor_spec.rb
@@ -41,10 +41,10 @@
41
is_expected.to have_selector("sl-tooltip[content='Level']")
42
43
44
- context "and having many level options" do
+ context "and having any level options" do
45
before do
46
allow(headline_editor).to receive(:level_options) do
47
- [["H1", 1], ["H2", 2]]
+ [["H1", 1]]
48
49
50
0 commit comments