1
1
mirror of https://github.com/primer/css.git synced 2024-11-29 06:02:33 +03:00
Commit Graph

18 Commits

Author SHA1 Message Date
Jon Rohan
af3ab76454
Upgrade to @primer/primtives@8.2.0 and @primer/stylelint-config@13.0.0-rc (#2634)
* Upgrade primer/primitives to latest

* Change theme imports

* Remove empty css imports

* upgrade

* Replacing $spacing variables

* Replace a few direct values

* Fix stylelint add disables script

* Add stylelint disables to exisiting files

* Fix ci run

* Create young-foxes-battle.md

* Updates from suggestions

* Fix theme in storybook
2024-06-03 12:57:42 -07:00
Katie Langerman
a03827b0a0
Cleanup old Primitive imports (#2606)
* cleanup

* Create three-apples-beg.md

* add color imports to sb

* sb upgrades
2024-04-09 11:55:11 -07:00
Katie Langerman
ad358f2087
Remove Gatsby docs site (#2484)
* upgrade

* add all stories

* new directory

* move back to docs

* remove from root

* cleanup

* try node 16

* adjust build script

* try to fix build

* try node 16

* maybe?

* please

* bye gatsby

* fix button story

* add info banner

* add missing marketing docs
2023-07-13 15:14:44 -07:00
Katie Langerman
acc29def37
Move gatsby docs to Storybook (#2488)
* add mdx

* fix build

* test canvas format

* url structure and static dir

* fix static?
2023-07-12 08:28:18 -07:00
Katie Langerman
abdb3a93f1
Add utility typography CSS vars to main bundle (#2438)
* update main bundle

* Create small-nails-matter.md
2023-05-03 09:12:45 -07:00
Katie Langerman
facb96823a
FormControl refactor/cleanup (#2114)
* checkbox animation adjustment

* radio styles

* disabled state

* pull styles from app header

* cleanup spacing/alignment

* add checkbox focus styles

* stories + radio focus styles

* convert to css check

* refactor to pure *CSS* :)

* configure multi radio story

* lint

* Create neat-sloths-march.md

* snappier animations

* adjust mask size for better scailing

* checkbox mask size

* lint

* Stylelint auto-fixes

* rename classes

* how many times will she refactor?

* slight refactor based on original api

* delete component file test

* Stylelint auto-fixes

* add comments around padding

* Stylelint auto-fixes

* undo changes to old forms

* increase touch target :)

* remove unused grid + cursor pointer

* Stylelint auto-fixes

* adjust disabled checked styles

* bump primitives

* Stylelint auto-fixes

* Update neat-sloths-march.md

* temp add prefix for testing

* test windows high contrast

* cleanup prefix for final build

Co-authored-by: Actions Auto Build <actions@github.com>
2022-06-30 14:37:27 -07:00
Katie Langerman
92ac0e39e6
Setup new primer-primitive bundle (#2078)
* bump

* add index

* add storybook support

* gatsby import

* Create itchy-wasps-refuse.md
2022-05-18 18:21:47 -07:00
Rez
40b9e1674c
add deployment workflows for GitHub Pages (#2038)
* add workflows

* change trigger to pull_request

* remove duplciate workflow stage name

* remove workflow trigger conditions

* switch to experimental workflow

* attempt restoring storybook environment

* fix build trigger

* apply correct storybook environment

* add deployments to permissions

* bump more permissions

* add ref

* another workaround

* change target_url to make deployment appear

* revert ref stuff
2022-04-19 16:26:47 -07:00
Siddharth Kshetrapal
68adc95940
Keep Examples as the last item (#1893) 2022-01-19 18:04:36 +01:00
Vinicius Depizzol
6b4089d8b3
PageLayout component / Layout beta + storybook (#1737)
* storybook for layout alpha

* the beginning of layout beta

* simplify spacing structure and other things

this is a reminder that all the abstraction can happen in the viewComponent;
there's no need to flood the css with constricted behaviors

* add rowGap & dividers, clean spacing props

* content-width support, sticky pane

* cleanup props

* add preset property

* !default

* component name & settings example

* typo, cleaner header & footer template

* fix preset options

* mobile-friendly responsive behavior

* ongoing flowVertical breakpoint behavior

* finish panePosition + responsive pos & dividers

* panePosition fix

* add splitAsPage, finish responsive divider

* Layout beta ongoing updates (#1779)

- simplify component with better names
- rename it to `PageLayout`
- stylelint cleanup
- finalize responsive variants
- finalize variant-specific region dividers

* add minimum 320px viewport

* fix layout alpha, add layout patterns

* cleanup bg colors, stylint pass

* enable debug bg colors

* colorful regions by default for dubugging

* "Needless disable for primer/no-undefined-vars"

* Stylelint auto-fixes

* line breaks a EOF

* introduce page layout behavior as a sb helper

* children props in specialized components

* cleanup

* typo

* discussions responsive temporary example

* layout alpha descriptions

* pageLayout prop descriptions

* cleanup

* fix conflict

* copy

* responsiveVariant storybook description

* 0 padding on fullscreen storybook layout

* has__divider for boolean props

* cleanup, copy

* cleanup

* cleanup

* cleanup chained selections/descendants

* Stylelint auto-fixes

* inherit values for responsive divider props

* consolidate modifier names for responsive props

Changelog:

### CSS classes
- `PageLayout--variant-stackRegions` → `PageLayout--responsive-stackRegions`
- `PageLayout--variant-separateRegions` → `PageLayout--responsive-separateRegions`
- `PageLayout--variant-stackRegions-panePos-*` →`PageLayout--responsive-panePos-*`
- `PageLayout--variant-separateRegions-primary-*` →`PageLayout--responsive-primary-*`
- `PageLayout-region--hasDivider-*` → `PageLayout-region--dividerNarrow-*`

### Prop names
- `responsivePrimaryRegion` → `primaryRegion`
- `paneResponsivePosition` → `panePositionNarrow`
- `paneResponsiveDivider` → `paneDividerNarrow`
- `headerResponsiveDivider`→ `headerDividerNarrow`
- `footerResponsiveDivider`→ `footerDividerNarrow`

### Args
- `*DividerNarrow` props have new `inherit` value by default

* Create lemon-games-swim.md

* Update lemon-games-swim.md

* cleanup, header+footer dividers as local modifiers

* hasFooterDivider instead of footerDivider

* fix primaryRegion selector

Co-authored-by: Actions Auto Build <actions@github.com>
Co-authored-by: Katie Langerman <langermank@github.com>
2021-12-21 12:51:59 -08:00
Katie Langerman
c46fe9186e
Actionlist tree-view CSS (#1803)
* collapse state updates

* inset variant

* pseudo, you fine as you are

* tree view pattern draft

* tree view structure

* Stylelint auto-fixes

* trying tree roles

* vertical connector progress

* inline css var for spacing logic

* refactor tree story

* cleanup, lint

* add aria roles

* Create healthy-monkeys-complain.md

* lint

* lil change to trigger cli

* spacing adjustments

* move var

* linty fresh

* stuck in a stylelint loop

* fix var syntax

* one last try for today

* fix var

* test moving stylelint disable

Co-authored-by: Actions Auto Build <actions@github.com>
Co-authored-by: Jon Rohan <yes@jonrohan.codes>
2021-12-16 11:40:54 -08:00
Adrián Bolonio
3979793677
Improve the JS code in for the theme picker in the storybook decorator (#1769)
* Improve the js code in for the theme picker in storybook

* Fix npm execution error in the storybook documentation

Co-authored-by: Katie Langerman <langermank@github.com>
2021-11-30 11:05:26 -08:00
Jon Rohan
1714778af7
Updating primer/primitives@7.1.0 and adding Light High Contrast theme (#1755)
* Updating primer/primitives

* Adding light high contrast theme

* Adding light high contrast theme

* Create quiet-spiders-help.md
2021-11-17 17:11:54 -08:00
Katie Langerman
f824581f30
Storybook enhancements - prototyping + docs (#1747)
* set up prototyping playground

* colorblock component

* add color picker

* update select to radio

* check focus state shortcut

* move stories from focus pr + add focus control

* add all form elements

* typo

* add toc, fix radio options

* fix dev script

* add focus state as class for theme testing

* fix radio example in playground
2021-11-16 11:46:47 -08:00
Vinicius Depizzol
8d026a2077
use storybook padded defaults (#1735) 2021-11-02 15:57:59 -07:00
Vinicius Depizzol
9fe621fbb7
Use min and max values in storybook breakpoints (#1736) 2021-11-02 13:52:31 -07:00
Katie Langerman
f8b40fd51d
add breakpoint picker, fix codeblocks in docs (#1713) 2021-10-28 11:24:33 -07:00
Katie Langerman
81dd6892d5
basic storybook config (#1678) 2021-10-14 14:21:02 -07:00