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#16232fixes#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.
This reimplements chip, removing the extraneous chip-button and chip-icon components and updating the design to match the updated Material Design spec.
Adds the following CSS properties to item:
```
--highlight-color-focused
--highlight-color-valid
--highlight-color-invalid
--highlight-height
```
This also fixes an issue where we were showing the highlight on items
with no lines, and shows inset vs full properly. Adds documentation and tests for input focus.
fixes#14036fixes#9639fixes#14952closes#15690
- updates components to use shadow DOM or scoped if they require css variables
- moves global styles to an external stylesheet that needs to be imported
- adds support for additional colors and removes the Sass loops to generate colors for each component
- several property renames, bug fixes, and test updates
Co-authored-by: Manu Mtz.-Almeida <manu.mtza@gmail.com>
Co-authored-by: Adam Bradley <adambradley25@gmail.com>
Co-authored-by: Cam Wiegert <cam@camwiegert.com>
* docs(components): update grammar and docs
* docs(item): update item documentation and add usage
* test(item): add lines test
* feat(list): add lines property to override borders on items
* feat(item): add lines property to override borders on items
* refactor(item): remove old uses of no-lines attribute
* fix(item-sliding): update item options to show border
- show the border on left options only if in a full list
- show the border on both options only if in an inset list (or ios by
default)
- don’t show border on either for no lines list (and md by default)
also renames isRightSide to isEndSide to match the side values
* chore(package): update package lock
* style(item): fix lint errors
* test(item): update item tests
* refactor(item): remove the custom styling of last child items
instead of us overriding first/last child items to have borders we are
going to add to the documentation how to style items with a full border
* fix(item): apply border to item inputs for MD mode
* docs(components): update docs based on new build
* docs(usage): update item usage to show lines being used
* fix(item): do not set the padding right to 0 on an item by default
* fix(item): cast lines to boolean
fixes: #5537#13218#12689#12073#9112