Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding --padding-start to ion-segment-button does not add padding to the last button in the segment #16081

Closed
thomasferns opened this issue Oct 25, 2018 · 1 comment
Assignees

Comments

@thomasferns
Copy link

thomasferns commented Oct 25, 2018

--padding-start should add padding at the start for all the segment buttons (Not added to the last button)
--padding-end should add padding at the end for all the segment buttons(Not added to the first button)

CODE:
in html

        <ion-segment  mode="ios">
            <ion-segment-button>option 1</ion-segment-button>
            <ion-segment-button>option 2</ion-segment-button>
            <ion-segment-button>option 3</ion-segment-button>
        </ion-segment>

in scss

ion-segment-button {
  --padding-start: 5px;
  --padding-end: 5px;
}

Expected Behavior
Padding of 5px should be added to all the 3 buttons on left and right

Actual Behavior
Padding not added to the right of the first button and to the left of the last button

@ionitron-bot
Copy link

ionitron-bot bot commented Dec 15, 2018

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Dec 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants