Git Product home page Git Product logo

decathlon / vitamin-web Goto Github PK

View Code? Open in Web Editor NEW
270.0 15.0 75.0 27.1 MB

Decathlon Design System UI components for web applications

Home Page: https://decathlon.github.io/vitamin-web

License: Apache License 2.0

JavaScript 21.07% HTML 31.83% CSS 15.59% TypeScript 13.27% Svelte 11.81% Vue 4.90% Shell 0.06% MDX 1.47%
design-system libraries components design-tokens ui-components ui-kit styleguide yarn showcases vitamin

vitamin-web's People

Contributors

0x2a-git avatar antleblanc avatar antoinedeloy avatar astahmer avatar crotru avatar dependabot[bot] avatar egilleron avatar fredericespiau avatar gabbloquet avatar gaspard-mathon avatar gaspardmathon avatar gregoirew avatar jleveugle avatar jquinc30 avatar lauthieb avatar ledouxm avatar loutsoi852 avatar martin-brandenburg avatar matthiascarteldkt avatar maxencedelaine2 avatar mgrisole avatar mig-l avatar mlefebvre-decathlon avatar shyrro avatar thibault-mahe avatar thollander avatar thomaslaigneaudecathlon avatar tlahey avatar wlalele avatar yhafidi avatar

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

vitamin-web's Issues

refactor: line-height shouldn't wear unit

Bug Report

line-height cascades down and shouldn't wear unit

Current behavior

element {
  font-size: 2rem;
  line-height: 3rem;
}

It implies that any children of element without explicit line-height definition will have a 3rem line-height whatever its font-size may be.

Expected behavior

line-height should be a multiplicator of font-size.

element {
  font-size: 2rem;
  line-height: 1.5;
}

That way element children will have a consistent line-height whatever element font-size value or unit is.

Related code

in /packages/css/src/design-tokens/typography.css

image

build: versioning, changelog & NPM publish packages with our CI/CD

Subject

We need to version, make an automated changelog & publish our NPM packages with our CI/CD.

Possible solutions / References:

bug: error on pre-commit hook from Husky with lerna + lint-staged

Bug Report

We are facing a problem when we update a CSS file because the script stylelint:fix is failing when launched with lint-staged on pre-commit hook configured with Husky.

We should commit without add --no-verify

For example, to reproduce:

Thanks in advance for your help & thanks @gabbloquet for reporting me this too!

config: add package for CSS styles

Feature request

In order to separate styles from markup and interaction, we have to create a package dedicated only to CSS styles (design tokens + components classes). This will be used as a dependency of our next component libraries (Web Components, React, Svelte...).

bug(@vtmn/showcase-svelte): source code with addon-docs is not displayed correctly on Storybook

Bug Report

As you can see here: https://decathlon.github.io/vitamin-web/@vtmn/showcase-svelte/?path=/docs/components-vtmnbutton--overview
The source code is not displayed, and when we change the props, the source code doesn't change too.

image

Working example

Here is a working example with the Storybook showcase for React components: https://decathlon.github.io/vitamin-web/@vtmn/showcase-react/?path=/docs/components-vtmnbutton--overview

image

design: spacing as multiple of 16

Could spacing values be some multiples of 16 (as it is for other design tokens ?)
it allows easily match to integer values.

Here we have multiple of 0.25, this gives us half pixels :

image

(0.25rem -> 2.5px)

feat: add a package for Svelte components library

Feature request

When we have a CSS package added (#1), we will also add a Svelte components library that will use the styles pushed in CSS in the other package to create components exposed in a Storybook.

bug: Firefox support.

Bug Report

Bug report

Firefox doesn't seem supported

Current behavior

Capture d’écran 2021-03-05 à 09 23 45

Uncaught SyntaxError: nothing to repeat

Expected behavior

The website "just works" on Firefox.

Steps to reproduce

Using FF 86.0 (at least on Mac Os 10.15.7).

Browsers affected

  • Firefox

Versions

  • 86.0

bug(@vtmn/icons): can't use icon font mode

The import './node_modules/@vtmn/icons/dist/vitamix.css' doesn't work.

With './node_modules/@vtmn/icons/dist/vitamix/font/vitamix.css' icons can be displayed but always with the same design.
image

bug: Multiline broken on checkbox component

Bug Report

Bug report

Multiline display for label is broken

Current behavior

Fix multiline label display

Steps to reproduce

Related code

insert short code snippets here

Browsers affected

  • Chrome
  • Firefox
  • Edge
  • Safari 11
  • Safari 10
  • IE 11

Versions

  • @vtmn/css-checkbox: v0.1.1

Other information:

Vitamin design
image

Vitamin component
image

bug: link component not allows inline design

Bug Report

Bug report

Link component can't be used as inline link with correct vitamin design

Current behavior

Expected behavior

Add inline link styles

Steps to reproduce

Related code

insert short code snippets here

Browsers affected

  • Chrome
  • Firefox
  • Edge
  • Safari 11
  • Safari 10
  • IE 11

Versions

  • @vtmn/css-link: v0.1.2

Other information:

image

bug(@vtmn/vue): problem with showcase values

Bug Report

Bug report

  • In the vue showcase, whatever value you set for the button (variant or size), that doesn't affect the button.

Current behavior

In the showcase right panel, if I choose a variant or a size for the button, it doesn't update.

Expected behavior

For each variant and size property, the button should update to show the result of the applied changes.

Steps to reproduce

Go to https://decathlon.github.io/vitamin-web/@vtmn/showcase-vue/?path=/story/components-vtmnbutton--overview and select on the right panel a variant or a size for the button. No changes will affect the button.

Browsers affected

  • Chrome
  • Firefox
  • Edge
  • Safari 11
  • Safari 10
  • IE 11

Versions

  • @vtmn/vue: v0.0.26

Other information:

bug(@vtmn/showcase-css): source code indentation with addon-docs is broken when Storybook is built

Bug Report

Source code indentation with addon-docs doesn't work when storybook is built for production but ok when start in watch mode.
Maybe a problem of Storybook's webpack configuration? I didn't find the reason why.

Steps to reproduce

1/ yarn start:css, then go to http://localhost:6006/?path=/docs/components-button--default => OK ✅

image

2/ cd packages/showcases/css && yarn build-storybook
If you serve statically the storybook-static folder generated with http-server (npm i -g http-server) for example: http-server storybook-static, then go to http://localhost:8080 & Components/Button (in "Docs" tab) => KO 🔥

2 bis/ or just simply see the bug to our public showcase: https://decathlon.github.io/vitamin-web/@vtmn/showcase-css/?path=/docs/components-button--default => KO 🔥

image

Thanks for your help! :)

bug(@vtmn/icons): icon font is not well generated from SVG icons

Bug Report

Our icon font is not well generated and we have differences between SVGs and fonts after generating our vitamix.(ttf,woff,woff2) font files.

After investigation, it seems that this problem comes from our export on Figma with this file (https://www.figma.com/file/ujn50nNMfGKzZJccATv7Vk/Vtmn-Vitamix-Icons?node-id=0%3A1) because when I export with the official file of Remix icon (https://www.figma.com/community/file/847406312498234850/Remix-Icons-for-Figma), it works well.

You can see the difference between External image (SVG) & Icon font here: https://decathlon.github.io/vitamin-web/@vtmn/showcase-icons/

image

image

feat: add a package for Vue components library

Feature request

When we have a CSS package added (#1), we will also add a Svelte components library that will use the styles pushed in CSS in the other package to create components exposed in a Storybook.

bug: "$1" arg in the commit-msg yarn command dont work for windows

Bug Report

Bug report

During the commit-msg husky hook we call the commit-msg yarn command ("commitlint --edit $1"), on window machine this command dont work.

Current behavior

When a commit is sent with a right naming convention the git output return :

$ commitlint --edit $1
C:\Users\user\Documents\Vitamin\vitamin-web\node_modules\@commitlint\cli\lib\cli.js:106
        throw err;
        ^

[Error: ENOENT: no such file or directory, open 'C:\Users\user\Documents\Vitamin\vitamin-web\$1'] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path: 'C:\\Users\\user\\Documents\\Vitamin\\vitamin-web\\$1'
}
error Command failed with exit code 1.

Expected behavior

The commit linter should be effective.

Steps to reproduce

WINDOWS USERS ONLY :

  • git add your_file
  • git commit -m "type: purpose of the functionality"

Related code

vitamin-web/package.json :

"scripts": {
   "commit-msg": "commitlint --edit $1",
},

vitamin-web/.husky/commit-msg :

yarn commit-msg

Browsers affected

  • Chrome
  • Firefox
  • Edge
  • Safari 11
  • Safari 10
  • IE 11

Versions

  • @vtmn/...: vX.X.X

Other information:

WORKAROUND :

Replace "yarn commit-msg" by "yarn commitlint --edit $1".

bug(@vtmn/css-checkbox): component is different from vitamin design

Bug Report

Bug report

Checkboxes should not have radius and have a darker border

Current behavior

Expected behavior

You should fix style

Steps to reproduce

Related code

insert short code snippets here

Browsers affected

  • Chrome
  • Firefox
  • Edge
  • Safari 11
  • Safari 10
  • IE 11

Versions

  • @vtmn/css-checkbox: v0.1.1

Other information:

Vitamin design
image

Vitamin component
image

bug(@vtmn/showcase-vue): source code with addon-docs is not displayed correctly on Storybook

Bug Report

As you can see here: https://decathlon.github.io/vitamin-web/@vtmn/showcase-vue/?path=/docs/components-vtmnbutton--overview
The source code is not displayed, and when we change the props, the source code doesn't change too.

image

Working example

Here is a working example with the Storybook showcase for React components: https://decathlon.github.io/vitamin-web/@vtmn/showcase-react/?path=/docs/components-vtmnbutton--overview

image

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.