ion-button element has no left and right border when using fill=outline and expand=full
See original GitHub issueIonic 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>
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
ion-button element has no left and right border when using fill ...
The outlined button should have the left and right border. Steps to reproduce: Use the code: <ion-button expand="full" fill="outline">The ...
Read more >ion-button - Ionic Framework
Design and style button elements with custom CSS properties. ... or to "full" for a full-width button with square corners and no left...
Read more >Ionic Buttons - javatpoint
It is used to make the buttons with a transparent background and a visible border. You can do it by adding the outline...
Read more >Remove border from ion-button - css - Stack Overflow
I am building an Ionic App. I have ...
Read more >How to implement an Ionic button in Ionic 6 .? - Edupala
With the release of ionic version 4, the Ionic framework is no longer ... button or to “full” for a full-width button without...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@brandyscarney Thank you! I didn’t know about
--border-radius
. I tried to setborder-radius: 0
, realized that I’m dealing with a web component’s shadow DOM and went with the other solution 🙂Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.