-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(segment): improves loading of the component and solves neste…
…d size issues
- Loading branch information
Amir Ashkan Baghdoust
committed
Oct 16, 2024
1 parent
f657202
commit 64c1a9b
Showing
4 changed files
with
90 additions
and
45 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<!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>Loading spinners</title> | ||
|
||
<script type="module" src="build/scale-components.esm.js"></script> | ||
<script nomodule src="build/scale-components.js"></script> | ||
<link rel="stylesheet" href="build/scale-components.css" /> | ||
<style> | ||
section { | ||
padding: 1rem; | ||
} | ||
.bg-black { | ||
background: black; | ||
color: white; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<scale-collapsible> | ||
<div slot="heading">Open Me for Disaster</div> | ||
<scale-segmented-button> | ||
<scale-segment selected>Apple</scale-segment> | ||
<scale-segment>One+</scale-segment> | ||
<scale-segment>Samsung</scale-segment> | ||
<scale-segment>Huawei</scale-segment> | ||
</scale-segmented-button> | ||
</scale-collapsible> | ||
|
||
<scale-segmented-button> | ||
<scale-segment>Apple</scale-segment> | ||
<scale-segment>One+</scale-segment> | ||
<scale-segment>Samsung</scale-segment> | ||
<scale-segment>Huawei</scale-segment> | ||
</scale-segmented-button> | ||
|
||
<scale-segmented-button> | ||
<scale-segment selected>Label</scale-segment> | ||
<scale-segment selected>Label</scale-segment> | ||
</scale-segmented-button> | ||
</body> | ||
</html> |