Skip to content

feat(home): icon should render on the right of title when alignment='right' #3951

Closed

Description

@PierreBrisorgueil

Context

PR #3947 recently added an alignment: 'left' | 'center' | 'right' option to home.content.component.vue. When alignment === 'right', the whole flex block (icon + title) is pushed to the right via justify-end, but the DOM order stays [icon][title], so the icon still visually sits on the LEFT of the title.

Expected behavior

When alignment === 'right', the icon should visually hug the right edge, matching the text alignment. Visually: [title] [icon].

Proposed fix

Add flex-row-reverse to the icon+title wrapper div when computedAlignment === 'right'. This must NOT be applied to other flex containers in the component (e.g. v-card-actions), which would flip button order.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions