mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
Apply AccessibleRole::ListItem
to the standard ListItem
component
This commit is contained in:
parent
f01420258f
commit
7e236017a7
4 changed files with 4 additions and 0 deletions
|
@ -111,6 +111,7 @@ export component ListItem {
|
|||
|
||||
layout := HorizontalLayout {
|
||||
padding-bottom: 8px;
|
||||
accessible-role: list-item;
|
||||
|
||||
StateLayerBase {
|
||||
width: 100%;
|
||||
|
|
|
@ -73,6 +73,7 @@ export component ListItem {
|
|||
i-layout := VerticalLayout {
|
||||
padding-left: root.padding-horizontal;
|
||||
padding-right: root.padding-horizontal;
|
||||
accessible-role: list-item;
|
||||
|
||||
i-background := Rectangle {
|
||||
background: transparent;
|
||||
|
|
|
@ -78,6 +78,7 @@ export component ListItem {
|
|||
padding-left: 16px;
|
||||
padding-right: 16px;
|
||||
spacing: 4px;
|
||||
accessible-role: list-item;
|
||||
|
||||
i-text := Text {
|
||||
text: root.item.text;
|
||||
|
|
|
@ -145,6 +145,7 @@ export component ListItem {
|
|||
i-layout := HorizontalLayout {
|
||||
padding-left: 12px;
|
||||
padding-right: 12px;
|
||||
accessible-role: list-item;
|
||||
|
||||
label := Text {
|
||||
text: root.item.text;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue