GithubHelp home page GithubHelp logo

carbon-design-system / carbon-website Goto Github PK

View Code? Open in Web Editor NEW
266.0 19.0 742.0 2.07 GB

The website for the Carbon Design System.

Home Page: https://www.carbondesignsystem.com

License: Apache License 2.0

JavaScript 12.36% TypeScript 0.09% SCSS 2.89% MDX 84.66%
hacktoberfest gatsby carbon ibm

carbon-website's Introduction

Carbon Design System

Deployment status

This is the Carbon Design System website. It's built using the gatsby-theme-carbon with GatsbyJS.

πŸ“‚ Structure

src
β”œβ”€β”€ components
β”œβ”€β”€ data
β”œβ”€β”€ gatsby-theme-carbon
β”œβ”€β”€ images
β”œβ”€β”€ pages
β”œβ”€β”€ styles
β”œβ”€β”€ util

πŸ‘©β€πŸ’» Develop

If you need more detailed information on how to set up your machine to develop locally, please take a look at our wiki.

πŸš€ Build

Running the build command generates all the files and places them in the public folder.

yarn build

carbon-website's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

carbon-website's Issues

[docs] Generate lead art for all component/usage pages

Part of the template created in #1600 will be a lead image. These must be generated for each component usage page.

Components

  • Accordion
  • Breadcrumb
  • Button
  • Checkbox
  • Code snippet
  • Content switcher
  • Data table
  • Date picker
  • Dropdown
  • File uploader
  • Form
  • Inline loading
  • Link
  • List
  • Loading
  • Modal
  • Notification
  • Number input
  • Overflow menu
  • Pagination
  • Progress indicator
  • Radio button
  • Search
  • Select
  • Slider
  • Structured list
  • Tabs
  • Tag
  • Text input
  • Tile
  • Toggle
  • Tooltip

Carbon website grid tiles

Describe in detail the issue you're having.

It seems like the grid tile view is broken

Is this issue related to a specific component?

Grid tile

What browser are you working on?

Chrome

What version of the Carbon Design System are you using?

Whatevers on the carbon design system website

request: Header and spec image for Modal

Request

  1. I need a header image representative of a "modal." This does not have to be any specific variant, but representing a common use case is best.
  2. I need a spec image to include in an "anatomy" section. The page currently has a format section. We will be switching to/creating "anatomy" sections for component pages. The shell docs have good examples of a spec image.

image

Resolve outstanding eslint issues

  1. add the following to .vscode/tasks.json

    {
      "version": "2.0.0",
      "tasks": [
        {
          "type": "npm",
          "script": "lint:js",
          "problemMatcher": "$eslint-stylish"
        }
      ]
    }
  2. press cmd+shift+d and select npm: lint:js

  3. resolve eslint errors in Problems tray of VSCode

[Color page] Update content for token values on Usage tab

Need to update some content for color values and add a new token on the Usage tab of the Color page on the website.


Add inverse-link color token

White theme
Blue 40
6ea6ff

Gray 10 theme
Blue 40
6ea6ff

Gray 90 theme
Blue 60
0062ff

Gray 100 theme
Blue 60
0062ff
interactive-02
Light themes
Gray 80
3d3d3d

Dark themes
Gray 60
6f6f6f


Add inverse-hover-ui color token

White theme
Gray 80 hover
4c4c4c

Gray 10 theme
Gray 80 hover
4c4c4c

Gray 90 theme
Gray 10 hover
e5e5e5

Gray 100 theme
Gray 10 hover
e5e5e5


interactive-02
Light themes
Gray 80
3d3d3d

Dark themes
Gray 60
6f6f6f


hover primary text
Dark themes
Blue 30
97c1ff


highlight
Gray 10 theme
Blue 20
c9deff

Gray 90 theme
Blue 70
054ada

Gray 100 theme
Blue 80
0530ad

Fix static build

 ERROR #11328 

A page component must export a React component for it to be valid. Please make sure this file exports a React component:

/Users/vincepicone/Programming/Work/carbon-www/src/pages/components/button/_examples/react/index.js

[docs] Create and add contextual component images

Our images for components, specifically variations, just float in space. We've been repeatedly asked for this.

Related to this proposal: #1587

Components

  • Accordion
  • Breadcrumb
  • Button
  • Checkbox
  • Code snippet
  • Content switcher
  • Data table
  • Date picker
  • Dropdown
  • File uploader
  • Form
  • Inline loading
  • Link
  • List
  • Loading
  • Modal
  • Notification
  • Number input
  • Overflow menu
  • Pagination
  • Progress indicator
  • Radio button
  • Search
  • Select
  • Slider
  • Structured list
  • Tabs
  • Tag
  • Text input
  • Tile
  • Toggle
  • Tooltip

[Contribution] Identify pain points for users

Overview

Identifying and understanding user pain points to design a better process that users will follow.

  • Use these to help inform the best, most friction-free process.
  • Use to validate processes after they've been documented.

The details

Five key areas identified:

1. Why?

  • Why should I contribute?
  • I don't have time
  • Contributing requires a lot of Carbon team feedback and time
  • Not seeing value in opening issues
  • Benefit: Portfolio pieces

2. Logistics

  • Two Github sites and accounts is a barrier
  • Linking process after creating two Github accounts
  • What if I don't have Sketch?
  • Where should I open an issue?
  • Is this already being worked on?
  • Will it be a priority?

3. Understanding contribution architecture

  • Confusion abounds between pattern, component, experimental
  • Generic contribution versus specific
  • Will it become part of core Carbon? Or part of an add-on site?
  • Do I need to genericize?
  • Community assets versus contributions

4. Requirements

  • Open Source annual training requirement
  • Understanding Open Source model
  • What is needed for a full contribution, partial contribution?
  • Contribution requirements aren't clear

5. Best feedback process

  • Issues are frequently abandoned
  • People not following up/taking next steps (process not identified, expectations not clear)
  • Excessive Slack comments / Help / Feedback
  • Things get lost in Slack

Include 'Danger Modal' guidance on usage Tab

Need to include guidance for Danger Modals on the Usage tab.

Right now on the usage tab we include Passive, Transactional and even Input, but no Danger. We do include Danger in the code tab.

[Inverse-link] Add token to color page (usage tab) on website

Add token to color page (usage tab) on website, it is in code now.

inverse-link
Links on high contrast moments

White theme
Blue 40 (# 6ea6ff)

Gray 10 theme
Blue 40 (# 6ea6ff)

Gray 90 theme
Blue 60 (# 0062ff)

Gray 100 theme
Blue 60 (# 0062ff)

bug fix[Component Code Tab]: Code snippet not displaying

bug fix[Component Code Tab]: Code snippet not displaying


Component Code Tab pulls in a Read me file from Github, as a result, there is no copy / scroll or show more functionality on these code snippets.

  • Is there a way to pull in our Carbon code snippet component in this situation?

Code snippet on Component Code tab

image.png


Correct Carbon Code snippet

image.png

request: Getting started for OMs

Throughout the Carbon site, our content speaks to two audiences: Designers and developers. A third audience we've failed to speak to is offering managers and product owners.

Our content should address OMs, beginning with a Getting started for OMs page.

This page should include:

  1. A value prop for OMs considering adopting Carbon
  2. An explanation of how teams can leverage Carbon now and in the future to boost UX and product experience, as well as development efficiency.

Component variant switcher

User need:

A user needs to be able to see all the available variants to a component without having to scroll through the whole page.

Proposed solution:

Collapsing all the component example windows into 1, with an added component variant switcher in the form of a list of radio buttons to allow users to switch between different variants of the component. This also shortens our component pages significantly, so we avoid the loooong scroll.

image.png

FYI @designertyler @jeanservaas coz the previous issue on Component example window got closed :D

Notification component for website

There are various places in the tutorial where it'd be nice to call out items of interest. Provide background explanations. Reference external material. Pro tips, notes, etc.

https://www.carbondesignsystem.com/tutorial/react-step-1/

Today, the best that we can do is use italics:
image

Would it be appropriate to use the Carbon Inline Notification component? (When it can accessibly be used on a gray 10 background.)

Or, would we make a bespoke component for the website to use?

Some explorations by @jeanservaas:
image (1)

image (2)

Incorrect guidelines/colors/usage documentation for $inverse-support-04

On guidelines/color/usage the documentation of $inverse-support-04 for the White and Gray 10 themes incorrectly states it uses the color token Blue 40 (#408BFC).

Blue 40 is in fact defined as #6EA6FF, the correct color token for $inverse-support-04 should be Blue 50 which is #408BFC, as specified.

Incorrect token Blue 40:
image

Correct token Blue 50 (as used by $interactive-04 for the White theme):
image

[contribution] Production guidelines (page templates for each of our pages)

Overview

As we seek to boost community contribution and interaction, high-quality documentation will be critical. The best way to ensure documentation is consistent with existing Carbon content, we need to determine our documentation production rules and provide templates for each page type.

The details

Define high-level writing and content guidelines for the Carbon website. This will resemble a style guide but pared down substantially.

We will also generate a template for the following page types:

  • Component usage
  • Component style
  • Pattern
  • Getting started

Vue Getting Started guide missing required sass installs

Detailed description

Describe in detail the issue you're having.

The guide at https://www.carbondesignsystem.com/getting-started/developers/vue only mentions @carbon/vue as a required install, but sass-loader and node-sass are also required for npm run serve to work.

Is this issue related to a specific component?

It's related to the previously mentioned guide.

What did you expect to happen? What happened instead? What would you like to see changed?

I expected npm run serve to build the Vue app right away. Instead I read through the error messages and found out I was missing two NPM packages. I'd like the getting started guide to include those packages.

What offering/product do you work on? Any pressing ship or release dates we should be aware of?

My IBM Cloud platform team uses carbon components for our UI and I'm trying to learn how to integrate Carbon into a new project.

Steps to reproduce the issue

  1. Follow instructions at https://www.carbondesignsystem.com/getting-started/developers/vue
  2. on npm serve error messages will appear for missing packages.

Additional information

Here are the errors I received in terminal:

Module build failed (from ./node_modules/sass-loader/lib/loader.js):
Error: Cannot find module 'node-sass'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:690:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.sassLoader (/Users/david/Workspace/carbon/node_modules/sass-loader/lib/loader.js:46:72)
Module build failed (from ./node_modules/sass-loader/lib/loader.js):
Error: Cannot find module 'node-sass'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:690:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.sassLoader (/Users/david/Workspace/carbon/node_modules/sass-loader/lib/loader.js:46:72

Toast notification positioning guidance

Add additional guidance and visual that explains how the toast notification should be positioned in relation to the grid and header.

Also, include direction on when to show toast in the upper right vs. bottom right (when it could cover nav or other status when it's close to the affordance to bring back the notification)

image

[Contribution] Identify contribution must haves

Overview

  1. Identify everything that is required for a contribution to make it through. (Full Monty)
  2. Identify minimum requirements.
  3. Identify partial contributions, if they exist.

The details

Full Monty contribution is as follows:

  • Working code
  • Design spec that includes:
    • spacing & size
    • typography tokens
    • color tokens
    • states
    • interactions
  • Design symbol/asset
  • Documentation

extend Component Status page

Summary

Add additional rows for desired components; add columns for 'design', 'spec'. and 'design tooling'; include calls to action for empty cells to contribute including links right to repos for contribution. Determine how and where we intend to expose add-ons on this page

Justification

Makes public component roadmap, work in progress, desired components, directs people toward a contribution model,

Desired UX and success metrics

table will display per component whether design exists, spec exists, state per framework, with direct links to the appropriate locations for things, and "get started contributing this" calls to action

Icon library birthday cake experience design spec

What is the next progressive step before that will help us reach the full wedding cake experience while still meeting user needs?

Switch themes in component demos

Dependent on #1736, implement the theme switcher.

Could also be dependent on how we support custom properties, if we rely on runtime theming to modify the component examples instead of having to set theme class names or CSS swapping.

Data Table -- add guidance for sorting patterns

Summary

On the Data Table page, please include a source of recommendations for different data types that correspond to β€œascending/up” and β€œdescending/down” arrows, and perhaps even what a suggested default direction would be for said data types.

Even something simple like β€œA-Z = up arrow” and β€œnewest to oldest = up arrow” (if that’s true) would be helpful.

Also adding a line for designers that sorting is not included in the code, so they probably need to define sorting behavior for their devs. (As a designer, I assumed there might be some default sorting logic already present in the code for the table, but this is not true.)

Lastly, adding more description of the tri-state-sort behavior that is currently present would be helpful for designers as well. And maybe some reasoning for this odd tri-state-sort behavior (I'd want to see a persistent arrow present for whatever column is currently sorted - to not be able to see a sorted table with no arrows). It's not super clear how the sort arrows work in the code, since the sort examples on the page aren't functional. I did not know this was how the component was written, and I assumed it was a bug when I saw the developed table in our product.

Relevant information

The Usage tab on the Data Table page has a tiny section on Sorting, which is the perfect place for the guidelines. https://www.carbondesignsystem.com/components/data-table/usage

[Content] add sections, content for Offering Management

We currently address two constituencies: Designers and Developers. at IBM and other organizations, a third constituency has a major impact on putting feature schedules on hold to adopt carbon- Offering Management.

We need to present this constituency with the value proposition in their language, and ideally tools to help them make the case to expend project points - make the investment - to put their teams roadmap on hold for some amount of time to refactor their UIs adopting our frameworks/system.

Propose an MVP Getting Started: Offering/Product Management

Then add some boilerplate of the value props for them to use in meetings, emails, presentations; presentations they can use.

We could also use this content in outreach/roadshow directly to these communities.

[docs] Inconsistent documentation on modal design

Detailed description

There seems to be some slight disagreement on spacing between the modal header and body on this page of the website: https://www.carbondesignsystem.com/components/modal/style#structure

In the 'Structure' table of styles, the margin-bottom for the bx--modal-header class is set at 8 / 0.5.

But in each example diagram below, the space between the header and body of the modals is 16 pixels. Which is the correct spacing?

Screenshots:
Screen Shot 2019-07-08 at 2 37 21 PM
Screen Shot 2019-07-08 at 2 39 15 PM
Screen Shot 2019-07-08 at 2 40 05 PM
Screen Shot 2019-07-08 at 2 40 09 PM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.