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

Increase icon size when inside of a segment button #5330

Closed
brandyscarney opened this issue Feb 4, 2016 · 4 comments
Closed

Increase icon size when inside of a segment button #5330

brandyscarney opened this issue Feb 4, 2016 · 4 comments
Assignees
Milestone

Comments

@brandyscarney
Copy link
Member

Do not increase segment height. Ours:

screen shot 2016-02-04 at 11 18 41 am

iOS:

slack for ios upload png

@brandyscarney brandyscarney self-assigned this Feb 4, 2016
@brandyscarney brandyscarney added this to the 2.0.0-beta.1 milestone Feb 4, 2016
@brandyscarney
Copy link
Member Author

The following CSS seems to do it, need to make sure there are no side effects:

.segment-button ion-icon {
  font-size: 2.2rem;
}

.segment-button {
  max-height: 2.4rem;
}

screen shot 2016-02-04 at 12 02 51 pm

@manucorporat
Copy link
Contributor

@brandyscarney I am working in the button flex issues in iOS/safari and I have a question: why some of max-height, min-height properties are relative?
like:

.segment-button {
  max-height: 2.4rem;
}

?

From my understanding... it does not make sense to have a segment or button with a relative height. If you want to use bigger buttons, there is a "larger-button" class, and of course if there is a strange use case where a bigger segment is required, the developer can write their custom CSS.

I think we could reduce the scope of CSS problems in buttons by "hardcoding" some of the margin/padding/height values. what do you think? does it make sense?

@adamdbradley
Copy link
Contributor

Well it's the hardcoding that often gets us into troubles, because users want to change the default to what looks good for their app. So using relative units allows things to adjust when they make changes.

@brandyscarney
Copy link
Member Author

Increased icon size for iOS and md. This will probably need to be revisited if people put an icon and text in the button, since those will be different sizes.

http://ionic-snapshot-go.appspot.com/ionic2/snapshots/pr4/r8z/chrome_400x800#f5e5e433

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 7, 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

3 participants