Skip to content

Commit

Permalink
Add BackgroundColor
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianoCalderon committed Dec 7, 2023
1 parent e29d78e commit 396f911
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/Vue3Steppy.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ const props = defineProps({
type: String,
default: "#fff",
},
backgroundColor: {
type: String,
default: "#fff",
},
circleSize: {
type: Number,
default: 68,
Expand All @@ -145,6 +149,7 @@ const cssVars = computed(() => {
return {
"--primaryColor1": props.primaryColor1,
"--primaryColor2": props.primaryColor2,
"--backgroundColor": props.backgroundColor,
"--circleSize": `${props.circleSize}px`,
};
});
Expand Down Expand Up @@ -174,6 +179,8 @@ const circleStyles = computed(() => {
<style scoped lang="scss">
$primary-1: var(--primaryColor1);
$primary-2: var(--primaryColor2);
$backgroundColor: var(--backgroundColor);
$transition: all 500ms ease;
body {
Expand Down Expand Up @@ -303,7 +310,7 @@ body {
.steppy-pane {
color: #333;
text-align: center;
background-color: #fff;
background-color: $backgroundColor;
border-radius: 15px;
padding: 25px 25px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
Expand Down

0 comments on commit 396f911

Please sign in to comment.