-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
disabled outlined button does not have the right color due to css selector specify
- Loading branch information
Showing
5 changed files
with
147 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
135 changes: 135 additions & 0 deletions
135
packages/core/src/components/button/test/theme/dark.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Input Basic | Poppy-ui</title> | ||
<link rel="stylesheet" href="/css/poppy.bundle.css"> | ||
<link rel="stylesheet" href="/css/themes/dark.always.css"> | ||
|
||
<script nomodule src="/dist/poppy/poppy.js"></script> | ||
<script type="module" src="/dist/poppy/poppy.esm.js"></script> | ||
<style> | ||
main { | ||
width: 100vw; | ||
height: 100dvh; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 1rem; | ||
padding: 1rem; | ||
|
||
background-color: var(--base-300); | ||
} | ||
section { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
gap: .35rem; | ||
} | ||
div { | ||
display: flex; | ||
gap: .5rem; | ||
} | ||
/* :root { | ||
--base-100-oklch: 27.81% 0.03 256.85; | ||
--base-200-oklch: 25.8613% 0.027524 256.847952; | ||
--base-300-oklch: 23.9147% 0.025452 256.847952; | ||
--primary-oklch: 66.09% 0.27688032105281896 348.83779297164955; | ||
--secondary-oklch: 43.83% 0.198 303.72; | ||
--accent-oklch: 80.91% 0.096 251.81; | ||
--neutral-oklch: 21.01% 0.032 264.6; | ||
--neutral-content-oklch: oklch(21.01% 0.032 264.6); | ||
--info-oklch: 75.35% 0.139 232.66; | ||
--success-oklch: 77.33% 0.153 163.1; | ||
--warning-oklch: 86.33% 0.176 89.91; | ||
--error-oklch: 68.4% 0.208 14.59; | ||
} */ | ||
</style> | ||
</head> | ||
<body> | ||
<main> | ||
<section> | ||
<h2>Button - basic</h2> | ||
<div> | ||
<pop-button>no color</pop-button> | ||
<pop-button color="primary">primary</pop-button> | ||
<pop-button color="secondary">secondary</pop-button> | ||
<pop-button color="accent">accent</pop-button> | ||
<pop-button color="info">info</pop-button> | ||
<pop-button color="success">success</pop-button> | ||
<pop-button color="warning">warning</pop-button> | ||
<pop-button color="error">error</pop-button> | ||
<pop-button color="ghost">ghost</pop-button> | ||
</div> | ||
</section> | ||
<section> | ||
<h2>Button - outlined</h2> | ||
<div> | ||
<pop-button outlined>no color</pop-button> | ||
<pop-button outlined color="primary">primary</pop-button> | ||
<pop-button outlined color="secondary">secondary</pop-button> | ||
<pop-button outlined color="accent">accent</pop-button> | ||
<pop-button outlined color="info">info</pop-button> | ||
<pop-button outlined color="success">success</pop-button> | ||
<pop-button outlined color="warning">warning</pop-button> | ||
<pop-button outlined color="error">error</pop-button> | ||
</div> | ||
</section> | ||
<section> | ||
<h2>Button - active</h2> | ||
<div> | ||
<pop-button active>no color</pop-button> | ||
<pop-button active color="primary">primary</pop-button> | ||
<pop-button active color="secondary">secondary</pop-button> | ||
<pop-button active color="accent">accent</pop-button> | ||
<pop-button active color="info">info</pop-button> | ||
<pop-button active color="success">success</pop-button> | ||
<pop-button active color="warning">warning</pop-button> | ||
<pop-button active color="error">error</pop-button> | ||
<pop-button active color="ghost">ghost</pop-button> | ||
</div> | ||
</section> | ||
<section> | ||
<h2>Button - outlined active</h2> | ||
<div> | ||
<pop-button outlined active>no color</pop-button> | ||
<pop-button outlined active color="primary">primary</pop-button> | ||
<pop-button outlined active color="secondary">secondary</pop-button> | ||
<pop-button outlined active color="accent">accent</pop-button> | ||
<pop-button outlined active color="info">info</pop-button> | ||
<pop-button outlined active color="success">success</pop-button> | ||
<pop-button outlined active color="warning">warning</pop-button> | ||
<pop-button outlined active color="error">error</pop-button> | ||
</div> | ||
</section> | ||
<section> | ||
<h2>Button - disabled (basic)</h2> | ||
<div> | ||
<pop-button disabled>no color</pop-button> | ||
<pop-button disabled color="primary">primary</pop-button> | ||
<pop-button disabled color="secondary">secondary</pop-button> | ||
<pop-button disabled color="accent">accent</pop-button> | ||
<pop-button disabled color="info">info</pop-button> | ||
<pop-button disabled color="success">success</pop-button> | ||
<pop-button disabled color="warning">warning</pop-button> | ||
<pop-button disabled color="error">error</pop-button> | ||
<pop-button disabled color="ghost">ghost</pop-button> | ||
</div> | ||
</section> | ||
<section> | ||
<h2>Button - outlined disabled</h2> | ||
<div> | ||
<pop-button outlined disabled>no color</pop-button> | ||
<pop-button outlined disabled color="primary">primary</pop-button> | ||
<pop-button outlined disabled color="secondary">secondary</pop-button> | ||
<pop-button outlined disabled color="accent">accent</pop-button> | ||
<pop-button outlined disabled color="info">info</pop-button> | ||
<pop-button outlined disabled color="success">success</pop-button> | ||
<pop-button outlined disabled color="warning">warning</pop-button> | ||
<pop-button outlined disabled color="error">error</pop-button> | ||
<pop-button outlined disabled color="ghost">error</pop-button> | ||
</div> | ||
</section> | ||
</main> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters