-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(styles): Add tabs element (#103)
* Add tabs scaffold * Add basic tabs styles * Add tabs element * Update tabs element * Update doc * Add usage example in a layout * Improve feedback * Add test scaffold * Update sidebar example * Update sidebar-nav-bot example * Update map-wrapper examples * Improve tabs documentation * Use Netlify for documentation (#104) * Test netlify * Don't redirect everything * Trigger deploy * Fix tabs mixin * Add tabs test * Fix border size * Fix padding * Remove text-align: center * Allow links inside tabs * Update tabs examples * Update examples with links * Fix test urls * Remove flex-shrink * Remove focus when tab is active * Update toolbar-tabs test * Fix linter * Fix xl tabs * Add tests for accesible tabs * Move .as-tabs class to ul element * Minor PR fixes
- Loading branch information
Showing
23 changed files
with
381 additions
and
103 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/ /catalog/index.html 200 |
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
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
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
@import './core/core.scss'; | ||
@import './tabs/tabs.scss'; |
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 was deleted.
Oops, something went wrong.
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
Binary file removed
BIN
-4.73 KB
packages/styles/src/core/layout/toolbar/test/img/layout.tabs-mobile-reference.png
Binary file not shown.
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 |
---|---|---|
@@ -1,27 +1,29 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>Generic Layout</title> | ||
<link rel="stylesheet" href="../../../../../dist/airship.css"> | ||
|
||
<style> | ||
html, | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
</style> | ||
</head> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>Generic Layout</title> | ||
<link rel="stylesheet" href="../../../../../dist/airship.css"> | ||
|
||
<style> | ||
html, | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body class="as-app"> | ||
<div class="as-toolbar-tabs as-tabs" role="tablist"> | ||
<button role="tab" class="as-tabs__item as-tabs__item--active">MAP</button> | ||
<button role="tab" class="as-tabs__item">LEFT</button> | ||
<button role="tab" class="as-tabs__item">RIGHT</button> | ||
<button role="tab" class="as-tabs__item">PANELS</button> | ||
</div> | ||
</body> | ||
|
||
<body class="as-app"> | ||
<nav class="as-toolbar-tabs"> | ||
<span onclick="_showTab1(event)" class="as-toolbar-tabs__item as-toolbar-tabs__item--active">MAP</span> | ||
<span onclick="_showTab0(event)" class="as-toolbar-tabs__item">LEFT</span> | ||
<span onclick="_showTab2(event)" class="as-toolbar-tabs__item">RIGHT</span> | ||
<span onclick="_showTab3(event)" class="as-toolbar-tabs__item">PANELS</span> | ||
</nav> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,3 +149,7 @@ table { | |
main { | ||
display: block; | ||
} | ||
|
||
button { | ||
border: none; | ||
} |
Oops, something went wrong.