Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

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

Closed
iKrishnaSahu opened this issue Apr 26, 2023 · 0 comments
Labels
bug Unresolved (Archived) Open and unresolved issues and PRs that were closed due to archiving the repository.

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

@asyncLiz asyncLiz added the Unresolved (Archived) Open and unresolved issues and PRs that were closed due to archiving the repository. label Jan 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Unresolved (Archived) Open and unresolved issues and PRs that were closed due to archiving the repository.
Projects
None yet
Development

No branches or pull requests

2 participants