Refactor toggles to work without JS, add specs

This commit is contained in:
Râu Cao
2023-03-15 14:04:12 +07:00
committed by Gitea
parent ca1221e9f3
commit fa56d6b772
12 changed files with 86 additions and 50 deletions

View File

@@ -2,7 +2,7 @@
module FormElements
class FieldsetComponent < ViewComponent::Base
def initialize(tag: "div", title:, description: nil)
def initialize(tag: "li", title:, description: nil)
@tag = tag
@title = title
@descripton = description