Skip to content

ion-button element has no left and right border when using fill=outline and expand=full #19947

@itsdarja

Description

@itsdarja

Ionic version:
[x] 4.11.5

I'm submitting a ...
[x] bug report
[ ] feature request

Current behavior:
When I use ion-button with the combination of attributes expand with value full and fill with value outline it results in a button with the left and right border of width 0 due to this CSS lines that apply to the ion-button shadow element:

:host(.button-full:not(.button-round)) .button-native { border-right-width: 0px; border-left-width: 0px; border-radius: 0px; }
The button-outline class should also be excluded from this selection.

Expected behaviour:
The outlined button should have the left and right border.

Steps to reproduce:
Use the code:
<ion-button expand="full" fill="outline">The sad button</ion-button>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions