Skip to content

[Bug]: Focus order not working. #280

@TeseySTD

Description

@TeseySTD

Description

Tried to test new FocusOrder attribute in TextButton component (#279 )

Steps to Reproduce

Change text button gallery to this (use new text button version from #279):

    <Panel Title="Preview" Border="BoxBorder.Rounded" Expand="true">
        <Columns>
            <TextButton Content="4"
                        FocusOrder="4"
                        BackgroundColor="@_restingColor"
                        OnClick="ToggleAsync" />
            <TextButton Content="2"
                        BackgroundColor="@_restingColor"
                        OnClick="ToggleAsync"
                        FocusOrder="2"/>
            <TextButton Content="3"
                        FocusOrder="3"
                        BackgroundColor="@_restingColor"
                        OnClick="ToggleAsync" />
            <Markup Content="@_status"
                    Foreground="@_statusColor"
                    Decoration="@_statusDecoration" />
        </Columns>
    </Panel>

Expected Behavior

Focus must be, as the button labels describes.

Actual Behavior

Focus by elements layout order.

Environment

No response

Additional Context

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions