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

Pr/membership #190

Merged
merged 12 commits into from
Nov 26, 2024
Merged

Pr/membership #190

merged 12 commits into from
Nov 26, 2024

Conversation

mhewson
Copy link
Member

@mhewson mhewson commented Nov 13, 2024

Description

membership palettes

@mhewson mhewson requested a review from sikhote November 13, 2024 23:27
@mhewson mhewson requested a review from c4rlosviteri November 18, 2024 18:27
src/styles/main.scss Outdated Show resolved Hide resolved
--cdr-color-border-surface-primary: #{$cdr-color-border-secondary};
--cdr-color-border-surface-secondary: #726d64;
}

Copy link
Contributor

Choose a reason for hiding this comment

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

With this removal, how are users expected to add in palettes? Maybe they would need to import the palettes file manually?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this question still applies—should we export the palette sass file you created?

Copy link
Member Author

Choose a reason for hiding this comment

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

I ended up moving this file to styles root dir and allowing it to be built to dist

@sikhote
Copy link
Contributor

sikhote commented Nov 20, 2024

Overall looks good, just looking to clarify a few things

}

[data-palette='membership-subtle'] {
--cdr-color-background-surface-primary: var(--cdr-membership-subtle-color-background-primary);
Copy link
Contributor

Choose a reason for hiding this comment

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

If these get changed to sass variables, solves the double import issue perhaps

Copy link
Member Author

Choose a reason for hiding this comment

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

yes I added sass as a fallback

@@ -9,28 +9,72 @@ import { getSurfaceProps } from '../../utils/surface';
defineOptions({ name: 'CdrSurface' });

const props = withDefaults(defineProps<surface>(), {
/**
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI this type of documentation is also part of the surface interface type. I'm not sure which one the doc site will pick up. I could see it as a little confusing to have both for someone coming into it without background knowledge, but I don't mind.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh my bad - interface seems like the correct location for this - the doc site seems to be using slightly different language

Copy link
Contributor

@sikhote sikhote left a comment

Choose a reason for hiding this comment

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

Sweeet ✅

@mhewson mhewson merged commit 2a136c8 into main Nov 26, 2024
2 checks passed
@mhewson mhewson deleted the pr/membership branch November 26, 2024 01:10
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.

3 participants