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

[mdc-icon-button] unable to import core-styles mixin of icon-button as shown in documentation #8088

Open
iKrishnaSahu opened this issue Apr 26, 2023 · 0 comments
Labels

Comments

@iKrishnaSahu
Copy link

Bug report

unable to import core-styles mixin of icon-button as shown in documentation - https://m2.material.io/develop/web/components/buttons/icon-buttons

// fails
@use '@material/icon-button' as icon-button;

// works
// @use '@material/icon-button/icon-button' as icon-button;

@include icon-button.core-styles;

Steps to reproduce

  1. Open this stackblitz
  2. Check if angular app is building

Actual behavior

Style import should work as shown in the documentation

Expected behavior

Style import is not working as shown in the documentation

Screenshots

image

Your Environment:

Software Version(s)
MDC Web Latest
Browser Chrome
Operating System Windows

Additional context

This seems like a miss in exporting styles file from barrel file.

Possible solution

Exporting _icon-button.scss from barrel file (_index.scss) should fix this issue

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

No branches or pull requests

1 participant