question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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>

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
adonigcommented, Nov 26, 2019

@brandyscarney Thank you! I didn’t know about --border-radius. I tried to set border-radius: 0, realized that I’m dealing with a web component’s shadow DOM and went with the other solution 🙂

0reactions
ionitron-bot[bot]commented, Dec 26, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found