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

Unable to change arrow color #18

Open
machineresearch opened this issue Oct 17, 2022 · 2 comments
Open

Unable to change arrow color #18

machineresearch opened this issue Oct 17, 2022 · 2 comments

Comments

@machineresearch
Copy link

I've been able to override all of the SCSS entries to customize the bdc-walk-popup class...except for the arrow color. How can I change the arrow color using CSS-only (see attachment)?

Screen Shot 2022-10-17 at 2 34 09 PM

@davideas
Copy link

davideas commented Mar 5, 2023

I use these styles to get theme colors and so the arrow. Blue style is also nice 👍
The variables have been set in @mixin with $theme parameter: the way Angular Material wants.

/* WALK-THROUGH */

.mat-mdc-menu-panel.bdc-walk-popup {
    box-shadow: 0 0 10px mat.get-color-from-palette($primary, default, 0.3);
    border: 1px solid $primaryColor;

    &.arrow.mat-menu-after.horizontal {
        &::before {
            border-right-color: $primaryColor;
        }
        &::after {
            border-right-color: $backgroundColor;
        }
    }

    // Hide the 'x' icon (useless with the buttons)
    .title a.close {
        display: none;
    }

    // Must use theme colors, increased readability (was too small)
    .container {
        background: $backgroundColor; //<-- in the library white background is hardcoded: this is a bug
        color: $primaryText;
        font-size: 16px;
        font-weight: normal;
    }

    .buttons button, .title .header {
        color: $primaryColor;
        font-size: 18px;
    }
}

@dboulet01
Copy link

dboulet01 commented Aug 25, 2023

How did you overcome the hardcoding in the library? @davideas

Having difficulty customizing the styling of the popup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants