Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

tabs: md-ripple change color on the fly #11784

Closed

Description

@2shapesaitor

How could I change .md-ripple color from mat-tabs dynamically?

Screenshot from 2019-08-26 10-09-44

I have tried overwriting these classes, not working.

:host::ng-deep .md-ripple-container
background-color: transparent !important
:host::ng-deep .md-ripple
background-color: red !important
color: red

Activity

  1. self-assigned this
    on Sep 1, 2019
  2. Splaktar commented on Sep 1, 2019

    @Splaktar
    Contributor

    Thank you for taking the time to submit this issue. However there are better avenues for troubleshooting or asking for help with your app. These include Stack Overflow, Gitter, the AngularJS Material forums, etc.

    Please limit GitHub issues to bug reports and enhancement requests.

    Unfortunately, this issue does not follow our required issue template. This gives the team the information needed to investigate the bug or prioritize the enhancement.

    You mention .md-ripple which is from AngularJS Material (this repo) and mat-tabs which sounds like Angular Material (but is actually mat-tab-group). I'm guessing that you meant md-tabs.

    If you use class="md-accent on the md-tabs element, the inkbar and ripple will use your theme's primary color.

    If you use class="md-primary or don't specify a theme class on the md-tabs element, the inkbar and ripple will use your theme's accent color.

    You can modify your theme using this guide.

    If you want to override the theme, then I was able to verify that this style override works:
    https://stackoverflow.com/a/35127566/633107

    Here's a CodePen demo that demonstrates this.

  3. changed the title [-]md-ripple change color on the fly[/-] [+]tabs: md-ripple change color on the fly[/+] on Sep 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions