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

Add grid and column to web components - proposal #18034

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

lee-chase
Copy link
Member

Closes #17909

An initial attempt at producing grid and column web components.

NOTE: It is not feature complete, but is intended as a functional first pass.

NOTE 2: It is possible not to use a context but this means having to hand wire sub-grid mode.

NOTE 3: It may be possible to remove sub-grid in favour of hosting a child component in grid that establishes a context for contained grids.

Changelog

New

  • Web components grid, sub grid, column and stories.

Testing / Reviewing

Constructed Default, Mixed Gutter Modes, Offset, Responsive and Sugbrid stories.

All stories except Mixed Gutter Modes have full-width, condensed and narrow as controls.

@lee-chase lee-chase requested a review from a team as a code owner November 11, 2024 11:02
Copy link

netlify bot commented Nov 11, 2024

Deploy Preview for v11-carbon-web-components ready!

Name Link
🔨 Latest commit 496694c
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-web-components/deploys/673e29c4a63a2a0008d855f9
😎 Deploy Preview https://deploy-preview-18034--v11-carbon-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Nov 11, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 496694c
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/673e29c4b7c058000817300a
😎 Deploy Preview https://deploy-preview-18034--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Nov 11, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 496694c
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/673e29c458839000083f50be
😎 Deploy Preview https://deploy-preview-18034--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@lee-chase
Copy link
Member Author

I think I over estimated what subgrid is and used a context to pass narrow and condensed down. Didn’t realise until I got to the mixed gutters story.

It may be possible to refactor away the sub-grid component, needs a bit more thought.

Note w.r.t. context. If not permitted then I am unsure how to detect parent grid.

Copy link

codecov bot commented Nov 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.29%. Comparing base (b53f566) to head (496694c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #18034   +/-   ##
=======================================
  Coverage   82.29%   82.29%           
=======================================
  Files         404      404           
  Lines       14276    14276           
  Branches     4531     4581   +50     
=======================================
  Hits        11749    11749           
  Misses       2365     2365           
  Partials      162      162           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

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

Successfully merging this pull request may close these issues.

[Feature Request]: Carbon columns are cumbersome to write out long hand e.g. for web components
1 participant