diff options
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/toolbar')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/toolbar/ButtonGroup.kt | 6 | ||||
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/toolbar/Toolbar.kt | 6 |
2 files changed, 2 insertions, 10 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/toolbar/ButtonGroup.kt b/src/main/kotlin/pl/treksoft/kvision/toolbar/ButtonGroup.kt index ddb3bca4..bf1cdc43 100644 --- a/src/main/kotlin/pl/treksoft/kvision/toolbar/ButtonGroup.kt +++ b/src/main/kotlin/pl/treksoft/kvision/toolbar/ButtonGroup.kt @@ -5,7 +5,6 @@ package pl.treksoft.kvision.toolbar import pl.treksoft.kvision.core.Container import pl.treksoft.kvision.core.StringBoolPair -import pl.treksoft.kvision.core.StringPair import pl.treksoft.kvision.panel.SimplePanel /** @@ -49,6 +48,7 @@ open class ButtonGroup( var style by refreshOnUpdate(style) init { + role = "group" @Suppress("LeakingThis") init?.invoke(this) } @@ -67,10 +67,6 @@ open class ButtonGroup( return cl } - override fun getSnAttrs(): List<StringPair> { - return super.getSnAttrs() + ("role" to "group") - } - companion object { /** * DSL builder extension function. diff --git a/src/main/kotlin/pl/treksoft/kvision/toolbar/Toolbar.kt b/src/main/kotlin/pl/treksoft/kvision/toolbar/Toolbar.kt index a1651a22..9e2de7f3 100644 --- a/src/main/kotlin/pl/treksoft/kvision/toolbar/Toolbar.kt +++ b/src/main/kotlin/pl/treksoft/kvision/toolbar/Toolbar.kt @@ -4,7 +4,6 @@ package pl.treksoft.kvision.toolbar import pl.treksoft.kvision.core.Container -import pl.treksoft.kvision.core.StringPair import pl.treksoft.kvision.panel.SimplePanel /** @@ -19,14 +18,11 @@ open class Toolbar( ) : SimplePanel(classes + "btn-toolbar") { init { + role = "toolbar" @Suppress("LeakingThis") init?.invoke(this) } - override fun getSnAttrs(): List<StringPair> { - return super.getSnAttrs() + ("role" to "toolbar") - } - companion object { /** * DSL builder extension function. |