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

feat: introduce o-spacing to o-private-foundation #1867

Merged
merged 57 commits into from
Dec 2, 2024

Conversation

frshwtr
Copy link
Contributor

@frshwtr frshwtr commented Nov 13, 2024

Describe your changes

Issue ticket number and link

Link to Figma designs

Checklist before requesting a review

  • I have applied percy label for o-[COMPONENT] or chromatic label for o3-[COMPONENT] on my PR before merging and after review. Find more details in CONTRIBUTING.md
  • If it is a new feature, I have added thorough tests.
  • I have updated relevant docs.
  • I have updated relevant env variables in Doppler.

frshwtr and others added 7 commits November 7, 2024 11:46
* feat: introduce o-private-foundation

* feat: introduce o-private-foundation

* backstage: Add Sass token target

* backstage: Delete oPrivateFoundation mixin use, as it does not exist

---------

Co-authored-by: Lee Moody <[email protected]>
We decided to develop using traditional demos for this package, as the dev experience is better with Sass. We do not expect users to use this package
@frshwtr frshwtr changed the base branch from main to 2025-release November 13, 2024 09:36
@notlee notlee temporarily deployed to origami-webs-2025-relea-82d1ov November 13, 2024 09:37 Inactive
@frshwtr frshwtr force-pushed the 2025-release-o-spacing branch from 5bfd9bc to 729cba1 Compare November 13, 2024 11:01
@notlee notlee temporarily deployed to origami-webs-2025-relea-82d1ov November 13, 2024 11:02 Inactive

/// All space names supported by o-spacing.
/// @type Map
$o-spacing-names: map-keys($_o-spacing-sizes);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Variables also need to be renamed to avoid conflicts

@notlee notlee temporarily deployed to origami-webs-2025-relea-82d1ov November 13, 2024 13:50 Inactive
frshwtr and others added 2 commits November 13, 2024 14:32
* feat: introduce o-private-foundation

* feat: introduce o-normalise to o-private-foundation

* feat: use o-private-foundation in origami components

* feat: introduce o-private-foundation

* feat: introduce o-private-foundation

* feat: introduce o-private-foundation

* chore: revert stories to use o-normalise

* chore: remove unused mixins and prefix remaining with private

* feat: use o-private-foundation's o-normalise

* fix: fix broken imports

* fix: fix buttons

* chore: use private foundation normalise

* chore: revert typography and buttons changes

* chore: correct errors

* chore: update package-lock.json

* chore: use main scss file

* chore: use imports as final approach, include o-colors

* chore: ensure private foundation is a peerDependency

* chore: remove tsx files

* chore: remove further cases of @use

* chore: remove unecessary variable

* chore: namespace variables

* chore: ensure original o-normalise is used in demos

---------

Co-authored-by: Lee Moody <[email protected]>
@frshwtr frshwtr force-pushed the 2025-release-o-spacing branch from ed9c488 to ad76564 Compare November 13, 2024 15:57
@notlee notlee had a problem deploying to origami-webs-2025-relea-82d1ov November 13, 2024 15:57 Failure
@notlee notlee had a problem deploying to origami-webs-2025-relea-82d1ov November 13, 2024 16:54 Failure
@notlee notlee had a problem deploying to origami-webs-2025-relea-82d1ov November 14, 2024 10:36 Failure
@notlee notlee had a problem deploying to origami-webs-2025-relea-82d1ov November 14, 2024 10:53 Failure
Takes o3-button and refactors to work in an o2 world. Slightly
odd use of Sass/CSS Custom Properties, with Sass conditionals
used to output duplicate CSS Custom Properties which override
each other in the same declaration. This was the safest way
to reuse o3 styles by effectively replacing class names for
Sass if statements. It's also more readable and simple than o2
Sass. Despite duplicating some properties, CSS output and
performance will be improved by moving away from the Origami
Image Service for coloured icons.

Currently supports:
- Types
- Themes
- Sizes
- Icons
- Icons only

Does not yet support:
- Custom theme maps

Will not support:
- Outputting CSS granularly. There are not many buttons left in
o2 components, and bundle size is reduced overall as noted above.

Other things of note:
- `o-private-foundation-get` allows other o2 components to grab tokens directly.
- Added Metric2 variable font
@notlee notlee had a problem deploying to origami-webs-2025-relea-xjt8hu November 25, 2024 16:34 Failure
@frshwtr frshwtr force-pushed the 2025-release-o-spacing branch from d3e43d3 to b952028 Compare November 25, 2024 16:37
@notlee notlee temporarily deployed to origami-webs-2025-relea-xjt8hu November 25, 2024 16:37 Inactive
)

* chore: align file structure with confirmed convention

* chore: fix lint errors

* chore: add private foundation includes to sass lint config

* chore: format o-multi-select/main.scss

* fix: format files

* fix: remove engine property from package.json

* chore: remove private-foundations

* chore: update normalise path

* chore: fix lint rules

* chore: fix lint rules
* feat: introduce and use o-private-foundation/o-visual-effects

* chore: update package-lock.json

* chore: move o-visual-effects, replace broken import
@notlee notlee temporarily deployed to origami-webs-2025-relea-xjt8hu November 26, 2024 11:00 Inactive
@notlee notlee temporarily deployed to origami-webs-2025-relea-xjt8hu November 26, 2024 16:33 Inactive
@notlee notlee temporarily deployed to origami-webs-2025-relea-xjt8hu November 27, 2024 09:51 Inactive
@notlee notlee temporarily deployed to origami-webs-2025-relea-xjt8hu November 27, 2024 16:26 Inactive
@notlee notlee temporarily deployed to origami-webs-2025-relea-xjt8hu November 27, 2024 16:27 Inactive
@notlee notlee temporarily deployed to origami-webs-2025-relea-xjt8hu November 27, 2024 16:53 Inactive
@notlee notlee temporarily deployed to origami-webs-2025-relea-xjt8hu November 28, 2024 09:36 Inactive
@notlee notlee temporarily deployed to origami-webs-2025-relea-xjt8hu November 28, 2024 11:36 Inactive
@notlee notlee temporarily deployed to origami-webs-2025-relea-xjt8hu November 28, 2024 12:46 Inactive
@frshwtr frshwtr force-pushed the 2025-release-o-spacing branch from 3c35689 to a5c0026 Compare November 28, 2024 12:49
@frshwtr frshwtr merged commit 382129d into 2025-release Dec 2, 2024
22 of 26 checks passed
@frshwtr frshwtr deleted the 2025-release-o-spacing branch December 2, 2024 10:33
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.

2 participants