Skip to content

Commit faa4447

Browse files
committed
fix(native_select): corrige capitalização de viewBox no chevron do NativeSelectIcon
1 parent c06b563 commit faa4447

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

gem/lib/ruby_ui/native_select/native_select_icon.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def view_template(&block)
1717
def icon
1818
svg(
1919
xmlns: "http://www.w3.org/2000/svg",
20-
viewbox: "0 0 24 24",
20+
viewBox: "0 0 24 24",
2121
fill: "none",
2222
stroke: "currentColor",
2323
stroke_width: "2",

mcp/data/registry.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1898,7 +1898,7 @@
18981898
},
18991899
{
19001900
"path": "native_select_icon.rb",
1901-
"content": "# frozen_string_literal: true\n\nmodule RubyUI\n class NativeSelectIcon < Base\n def view_template(&block)\n span(**attrs) do\n if block\n block.call\n else\n icon\n end\n end\n end\n\n private\n\n def icon\n svg(\n xmlns: \"http://www.w3.org/2000/svg\",\n viewbox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n stroke_width: \"2\",\n stroke_linecap: \"round\",\n stroke_linejoin: \"round\",\n class: \"size-4\",\n aria_hidden: \"true\"\n ) do |s|\n s.path(d: \"m6 9 6 6 6-6\")\n end\n end\n\n def default_attrs\n {\n class: \"text-muted-foreground pointer-events-none absolute top-1/2 right-2.5 -translate-y-1/2 select-none\"\n }\n end\n end\nend\n"
1901+
"content": "# frozen_string_literal: true\n\nmodule RubyUI\n class NativeSelectIcon < Base\n def view_template(&block)\n span(**attrs) do\n if block\n block.call\n else\n icon\n end\n end\n end\n\n private\n\n def icon\n svg(\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n stroke_width: \"2\",\n stroke_linecap: \"round\",\n stroke_linejoin: \"round\",\n class: \"size-4\",\n aria_hidden: \"true\"\n ) do |s|\n s.path(d: \"m6 9 6 6 6-6\")\n end\n end\n\n def default_attrs\n {\n class: \"text-muted-foreground pointer-events-none absolute top-1/2 right-2.5 -translate-y-1/2 select-none\"\n }\n end\n end\nend\n"
19021902
},
19031903
{
19041904
"path": "native_select_option.rb",

0 commit comments

Comments
 (0)