Commit Graph

6 Commits

Author SHA1 Message Date
Josh Thomas
22d1aeebaa docs(react): update component usage docs (#17615) 2019-02-26 08:54:01 -06:00
Elian Cordoba
bb05c6e84d docs(segment) add example for default Value
Closes #17275
2019-01-30 09:47:06 -05:00
Abdelaziz Bennouna
005f4135ac docs(segment): update segment usage to include label (#16882)
Adapt docs to 4.0.0-beta.16 breaking change
2019-01-03 17:45:18 -05:00
Brandy Carney
256745cd1e feat(segment): adds scrollable and layout props and updates to follow the spec (#16273)
Adds the ability to apply a layout to the segment button in order to better match the Material Design spec, updates the design and UI to match the spec more, and separates the segment button styles back into the proper directory.

- moves the segment button css back into segment-button directory
- updates the design to match the MD spec better
- adds layout property to match MD spec
- adds custom properties for better styling
- allows for overscroll / scrolling tabs via scrollable attribute
- changes the indicator to a div - will need to animate it
- updates e2e tests and add spec test

fixes #16232 fixes #16081
references #14853

BREAKING CHANGES

Segment Button now requires the text to be wrapped in an `ion-label` element for improved styling.

*Old usage:*

 ```html
<ion-segment-button>
  Item One
</ion-segment-button>
```
 *New usage:*

 ```html
<ion-segment-button>
  <ion-label>Item One</ion-label>
</ion-segment-button>
```

Note: this will not technically break your app, but the styles may look wrong.
2018-11-15 12:22:35 -05:00
Perry Govier
d82be3e98c docs(usage): setting angular usage example to be typescript (#14469) 2018-05-14 18:50:05 -04:00
Brandy Carney
5e0965260f docs(segment): add usage for segment and segment button 2018-04-05 11:33:04 -04:00