From 047dad9ccd18278ac5a3c73eae06e9a8ef085c65 Mon Sep 17 00:00:00 2001 From: Michael Hewson Date: Thu, 21 Nov 2024 13:45:18 -0800 Subject: [PATCH] docs and code review updates --- src/components/surface/CdrSurface.vue | 13 ++++++-- src/styles/cdr-reset.scss | 7 ++++- src/styles/settings/index.scss | 2 +- src/styles/settings/member-palette.scss | 42 +++++++++++++++++++++++++ src/styles/settings/palette.vars.scss | 30 ------------------ 5 files changed, 60 insertions(+), 34 deletions(-) create mode 100644 src/styles/settings/member-palette.scss delete mode 100644 src/styles/settings/palette.vars.scss diff --git a/src/components/surface/CdrSurface.vue b/src/components/surface/CdrSurface.vue index 960ab9d4e..0a6297dd5 100644 --- a/src/components/surface/CdrSurface.vue +++ b/src/components/surface/CdrSurface.vue @@ -15,7 +15,15 @@ const props = withDefaults(defineProps(), { borderWidth: 'sixteenth-x', modifier: 'default', radius: 'sharp', + /** + * Sets Adds a shadow based on the token options within Cedar. + * @values flat, raised, elevated, floating, lifted + */ shadow: 'flat', + /** + * Sets valid HTML element tag + * @values a, button + */ tag: 'div', withBorder: false, palette: 'default', @@ -25,18 +33,19 @@ const style = useCssModule(); const rootProps = computed(() => { const { classes } = getSurfaceProps(props, 'cdr-surface'); - + const { palette } = props; // Assuming 'palette' is a prop passed to your component return { class: mapClasses(style, ...classes) || undefined, + 'data-palette': palette || undefined, }; }); +