Skip to content

Commit

Permalink
fix: prettier fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tshimber committed Aug 28, 2024
1 parent a1a7674 commit 4b8b0ff
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 35 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/components/checkbox/checkbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ scale-checkbox.indeterminate [part='checkbox'] {
}

@media screen and (forced-colors: active), (-ms-high-contrast: active) {
scale-checkbox.indeterminate [part='checkbox'] {
scale-checkbox.indeterminate [part='checkbox'] {
border: 1px solid;
}
}
Expand Down
79 changes: 45 additions & 34 deletions packages/components/src/html/checkbox.html
Original file line number Diff line number Diff line change
@@ -1,39 +1,50 @@
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0"
/>
<title>Stencil Component Starter</title>

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" />
<title>Stencil Component Starter</title>
<script type="module" src="/build/scale-components.esm.js"></script>
<link rel="stylesheet" href="/build/scale-components.css" />
<style type="text/css" media="screen, print">
html {
margin: 0;
padding: 0;
}

<script type="module" src="/build/scale-components.esm.js"></script>
<link rel="stylesheet" href="/build/scale-components.css" />
<style type="text/css" media="screen, print">
html {
margin: 0;
padding: 0;
}
body {
margin: 0;
padding: 4rem;
}
</style>
</head>

body {
margin: 0;
padding: 4rem;
}
</style>
</head>

<body>
<p>
<scale-checkbox checked disabled label="Selected Disabled"></scale-checkbox>
</p>
<p>
<scale-checkbox indeterminate label="Indeterminate"></scale-checkbox>
</p>
<p>
<scale-checkbox label="Standard with error" helper-text="This is the error message" invalid></scale-checkbox>
</p>
<p>
<scale-switch label="My styles were affecting checkbox styles"></scale-switch>
</p>
</body>

</html>
<body>
<p>
<scale-checkbox
checked
disabled
label="Selected Disabled"
></scale-checkbox>
</p>
<p>
<scale-checkbox indeterminate label="Indeterminate"></scale-checkbox>
</p>
<p>
<scale-checkbox
label="Standard with error"
helper-text="This is the error message"
invalid
></scale-checkbox>
</p>
<p>
<scale-switch
label="My styles were affecting checkbox styles"
></scale-switch>
</p>
</body>
</html>

0 comments on commit 4b8b0ff

Please sign in to comment.