From 2f1596a3d9ac3e5c2464e1a1d932d00501d26fb2 Mon Sep 17 00:00:00 2001
From: caroluchoa <43659990+caroluchoa@users.noreply.github.com>
Date: Wed, 27 Mar 2024 18:28:40 -0300
Subject: [PATCH] show code funcionality
---
sections/Theme/Theme.tsx | 215 ++++++++++++++++++++++++++++++++-------
1 file changed, 176 insertions(+), 39 deletions(-)
diff --git a/sections/Theme/Theme.tsx b/sections/Theme/Theme.tsx
index bc04a589..c7738619 100644
--- a/sections/Theme/Theme.tsx
+++ b/sections/Theme/Theme.tsx
@@ -131,7 +131,7 @@ export interface Props {
buttonStyle?: Button;
otherStyles?: Miscellaneous;
font?: Font;
- /**
+ /**
* @description This is the admin's color-scheme mode
*/
mode?: "dark" | "light";
@@ -333,7 +333,7 @@ export function Preview(props: Props) {
}
.btn-outline-light:hover, .btn-outline-dark:hover {
- background-color: var(--admin-hover-bg-color);
+ background-color: transparent);
display: inline-flex;
flex-wrap: nowrap;
align-items: center;
@@ -364,16 +364,32 @@ export function Preview(props: Props) {
Components and styles
@@ -389,18 +405,22 @@ export function Preview(props: Props) {
const ButtonSizesPreview = () => {
const buttonSizes = {
- lg: 'Large',
- md: 'Normal',
- sm: 'Small',
- xs: 'Tiny'
+ lg: "Large",
+ md: "Normal",
+ sm: "Small",
+ xs: "Tiny",
};
- const buttonStyles = ['', 'primary', 'secondary', 'tertiary', 'accent'];
+ const buttonStyles = ["", "primary", "secondary", "accent"];
const renderButtonRow = (style: string) => (
{Object.entries(buttonSizes).map(([sizeCode, sizeText]) => (
-