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

Lead surface #167

Merged
merged 2 commits into from
Jan 3, 2024
Merged

Lead surface #167

merged 2 commits into from
Jan 3, 2024

Conversation

benjag
Copy link
Contributor

@benjag benjag commented Dec 19, 2023

Adds surface support to lead container

@benjag benjag changed the base branch from main to release/v15 December 19, 2023 21:21
Copy link
Member

@mhewson mhewson left a comment

Choose a reason for hiding this comment

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

looks grand!

* @demoSelectMultiple false
* @values 'top', 'bottom'
*/
surfaceOrientation: 'top' | 'bottom'
Copy link
Member

Choose a reason for hiding this comment

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

surfaceOrientation seems a bit of a mouthful would surface:top /bottom do the same?

<CdrTitle>Global lead title</CdrTitle>
</template>
</CdrLead>

<h2>Lead container with surface on top</h2>
Copy link
Member

Choose a reason for hiding this comment

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

nice!

);
&--top {
background: linear-gradient(
var(--cdr-lead-base-background-color, var(--cdr-color-background-primary, #{$cdr-color-background-primary})) 0 50%,
Copy link
Member

Choose a reason for hiding this comment

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

is this the surface color - the background color should come from leads parent

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Meaning the custom prop should be named --cdr-lead-surface-color? The tokens for surface don't exist so the fallbacks would still be background color right?

@@ -3,14 +3,14 @@
line-height: 0;
&--top {
background: linear-gradient(
var(--cdr-lead-base-background-color, var(--cdr-color-background-primary, #{$cdr-color-background-primary})) 0 50%,
var(--cdr-lead-surface-color, var(--cdr-color-background-primary, #{$cdr-color-background-primary})) 0 50%,
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if there is time to get
--cdr-surface
--cdr-surface-recessed
into tokens and then default the surface color to --cdr-surface - and allow the prop to switch its token?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can follow up with that, I want to get started on a round of integration testing

@benjag benjag merged commit 8e06895 into release/v15 Jan 3, 2024
@benjag benjag deleted the lead-surface branch January 3, 2024 00:50
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