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

[Bug]: Individual component import isn't allowing reset/default configuration #16209

Closed
2 tasks done
somasri-git opened this issue Apr 16, 2024 · 2 comments
Closed
2 tasks done

Comments

@somasri-git
Copy link

Package

@carbon/react

Browser

Chrome

Package version

1.27.0

React version

Next version: 12.3.4 React:18.2.0

Description

  • while importing individual component, default and reset styles are not configurable. Giving SASS error. Application is using // @use '@carbon/react'; at global scope. Instead of using all carbon components, if individual components to be imported, carbon is not allowing default/reset style configuration i.e. the 'with' keyword given below. Error screenshot attached.
    image

Reproduction/example

Use this in your sass file [eg. abcd.scss] @use '@carbon/react/scss/components/text-input' with ( $css--default-type: false, $css--reset: false, ) ; This is not working.

Steps to reproduce

Use this in your sass file [eg. abcd.scss]
@use '@carbon/react/scss/components/text-input' with (
$css--default-type: false,
$css--reset: false,
) ;

This is not working.
Screenshot 2024-04-16 200132

Suggested Severity

Severity 2 = User cannot complete task, and/or no workaround within the user experience of a given component.

Application/PAL

Macy's Knowledge Management

Code of Conduct

@somasri-git somasri-git changed the title [Bug]: [Bug]: Individual component import isn't allowing reset/default configuration Apr 16, 2024
@tay1orjones
Copy link
Member

@somasri-git Thanks for reporting this. Could you share more of the use case surrounding this? This is the first request we've seen asking to make the component-level reset configurable for individual components. Both $css--default-type $css--reset are meant to be configured at only a global level through @carbon/react or @carbon/react/scss/config

Copy link
Contributor

Thank you for submitting a feature request. Your proposal is open and will soon be triaged by the Carbon team.

If your proposal is accepted and the Carbon team has bandwidth they will take on the issue, or else request you or other volunteers from the community to work on this issue.

@tay1orjones tay1orjones added status: needs more info proposal: open This request has gone through triaging. We're determining whether we take this on or not. status: waiting for author's response 💬 and removed type: bug 🐛 labels Apr 29, 2024
@tay1orjones tay1orjones moved this to 🕵️‍♀️ Triage in Design System Apr 29, 2024
@tay1orjones tay1orjones closed this as not planned Won't fix, can't repro, duplicate, stale Jun 24, 2024
@github-project-automation github-project-automation bot moved this from Triage to Completed in Roadmap Jun 24, 2024
@github-project-automation github-project-automation bot moved this from 🕵️‍♀️ Triage to ✅ Done in Design System Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Archived in project
Development

No branches or pull requests

3 participants