-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
v4: setting --background overrides the background set by color #14853
Comments
86 tasks
brandyscarney
added a commit
that referenced
this issue
Sep 5, 2018
pull bot
pushed a commit
to peterennis/ionic
that referenced
this issue
Sep 24, 2018
removes use of `--ion-color-*` variables references ionic-team#14808 documents custom properties references ionic-team#14850 uses `—background` vars to prevent overriding the color css references ionic-team#14853
brandyscarney
added a commit
that referenced
this issue
Oct 11, 2018
Confirmed this is still an issue for segment and tabs after the refactor, cc @manucorporat |
brandyscarney
added a commit
that referenced
this issue
Nov 15, 2018
… 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.
brandyscarney
added a commit
that referenced
this issue
Nov 20, 2018
brandyscarney
added a commit
that referenced
this issue
Dec 5, 2018
but use them in the child segment button This allows the user to customize all of the segment buttons from segment, while still allowing the `color` property to take precedence, and they can also edit the segment button colors directly if desired. This actually fixes some bugs surrounding colors and allows customization for a segment inside of a toolbar. references #14853
manucorporat
pushed a commit
that referenced
this issue
Dec 5, 2018
…color property (#16590) * style(theming): clean up sass TODOs * fix(item): use proper padding on small buttons in an item * refactor(components): remove color from unused components * chore(components): update build files to remove color * fix(tab-bar): remove unused layout prop * test(segment): add custom test and update standalone * docs(segment): update usage examples to remove layout * test(segment): update tests to remove layout * test(tab-bar): update tests to remove layout * fix(segment): set the colors in the parent segment but use them in the child segment button This allows the user to customize all of the segment buttons from segment, while still allowing the `color` property to take precedence, and they can also edit the segment button colors directly if desired. This actually fixes some bugs surrounding colors and allows customization for a segment inside of a toolbar. references #14853 * style(sass): fix lint errors * chore(build): build files * fix(segment-button): use transparent background * docs(segment-button): add color activated back * why does the build hate me * fix(segment): set initial css variables to avoid inheriting * fix(segment): set initial color activated also add new line to the nav readme because reasons * test(segment): parent mode should match children
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug Report
Describe the Bug
Setting the
--background
variable on anion-toolbar
overrides toolbars withcolor
Steps to Reproduce
Steps to reproduce the behavior:
http://localhost:3333/src/components/alert/test/preview
ion-toolbar
:<ion-toolbar color="danger">
The text was updated successfully, but these errors were encountered: