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

Layout and Styling Issues in StackBlitz #18652

Open
5 tasks
heloiselui opened this issue Feb 20, 2025 · 0 comments
Open
5 tasks

Layout and Styling Issues in StackBlitz #18652

heloiselui opened this issue Feb 20, 2025 · 0 comments

Comments

@heloiselui
Copy link
Contributor

heloiselui commented Feb 20, 2025

Package:
@carbon/react

Browser:
Chrome

Package Version:
v1.75.0

Description:

While integrating StackBlitz with @carbon/react components, we encountered several layout and styling issues affecting proper rendering. During a PR review and testing session, we observed that some components are not displaying expected background colors, grid structures, and themes. Updating the affected components and ensuring their styles align with the expected design will help improve their functionality and consistency across different environments.

Tasks:

  • FlexGrid

    • Problem: The colored background boxes are not showing, and the text layout is misaligned in the FlexGrid component.
    • Expected Fix: Ensure that the background colors and text align properly in the grid.
  • Grid

    • Problem: The grid layout does not display properly, causing components to overlap or misalign.
    • Expected Fix: Fix the grid layout to ensure it works as expected and maintains consistent alignment.
  • HideAtBreakpoint

    • Problem: The colored background behind the text is missing, affecting the visual hierarchy.
    • Expected Fix: Implement the background color to enhance the component's appearance.
  • Layer

    • Problem: The gray background layer is not visible behind the text, making the text harder to read.
    • Expected Fix: Ensure the gray layer appears behind the text to improve readability.
  • Theme

    • Problem: Missing CSS for theme implementation in StackBlitz.
    • Expected Fix: Implement the necessary CSS for proper theme rendering in the preview.

For reference, in the codePreview.tsx file, you can check the rules and adjustments we apply to ensure that Storybook code is transformed correctly into a format that StackBlitz can interpret.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🪆 Needs Refined
Development

No branches or pull requests

1 participant