-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #358 from hashicorp/feature-dark-mode-toggle
Feature dark mode toggle
- Loading branch information
Showing
23 changed files
with
334 additions
and
85 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
12 changes: 12 additions & 0 deletions
12
addons/rose/addon/components/rose/dropdown/section/index.hbs
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,12 @@ | ||
<section class="rose-dropdown-section" aria-labelledby={{concat "dropdown-section-title-" this.id}}> | ||
{{#if @title}} | ||
<h2 | ||
id={{concat "dropdown-section-title-" this.id}} | ||
class="rose-dropdown-section-title" | ||
> | ||
{{@title}} | ||
</h2> | ||
{{/if}} | ||
|
||
{{yield}} | ||
</section> |
14 changes: 14 additions & 0 deletions
14
addons/rose/addon/components/rose/dropdown/section/index.js
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,14 @@ | ||
import Component from '@glimmer/component'; | ||
import { generateComponentID } from '../../../../utilities/component-auto-id'; | ||
import { action } from '@ember/object'; | ||
|
||
export default class RoseDialogComponent extends Component { | ||
|
||
// =attributes | ||
|
||
/** | ||
* @type {string} | ||
*/ | ||
id = generateComponentID(); | ||
|
||
} |
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,3 +1,3 @@ | ||
{{yield (hash | ||
radio=(component 'rose/form/radio/radio' name=@name selectedValue=@selectedValue disabled=@disabled) | ||
radio=(component 'rose/form/radio/radio' name=@name selectedValue=@selectedValue disabled=@disabled changed=@changed) | ||
)}} |
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
@import 'button'; | ||
@import 'link'; | ||
@import 'item'; | ||
@import 'section'; |
13 changes: 13 additions & 0 deletions
13
addons/rose/addon/styles/rose/components/dropdown/_section.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@use '../../variables/sizing'; | ||
@use '../../utilities/type'; | ||
|
||
.rose-dropdown-section { | ||
.rose-dropdown-section-title { | ||
@include type.type(s, bold); | ||
padding: 0 sizing.rems(s); | ||
margin: 0; | ||
$line-height: 36 / 14; | ||
line-height: $line-height; | ||
color: var(--ui-gray) | ||
} | ||
} |
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
Oops, something went wrong.
999fbb6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
boundary-ui-storybook – ./addons/rose
boundary-ui-storybook.vercel.app
boundary-ui-storybook.hashicorp.vercel.app
boundary-ui-storybook-git-main.hashicorp.vercel.app
999fbb6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
boundary-ui – ./ui/core
boundary-ui.vercel.app
boundary-ui.hashicorp.vercel.app
boundary-ui-git-main.hashicorp.vercel.app