-
Notifications
You must be signed in to change notification settings - Fork 6
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
Lead surface #167
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks grand!
src/components/lead/CdrLead.vue
Outdated
* @demoSelectMultiple false | ||
* @values 'top', 'bottom' | ||
*/ | ||
surfaceOrientation: 'top' | 'bottom' |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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%, |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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%, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
Adds surface support to lead container