-
Notifications
You must be signed in to change notification settings - Fork 51
Button - Fix color of Buttons within Modal triggered from SideNav or AppHeader (HDS-5572)
#3335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
KristinLBradley
merged 14 commits into
main
from
kristin/hds-5572-fix-modal-button-color-inheritance
Nov 3, 2025
+285
β7
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
4633e25
HDS-5572 Fix inheritance of color styles for Buttons witin Modals triβ¦
KristinLBradley dae122c
Fix color inheritance for Buttons in Modal
KristinLBradley 8518743
Update showcase/app/components/mock/app/sidebar/side-nav.gts
KristinLBradley 70c026b
HDS-5572 Remove Modal example from AppFrame demo, add nested Button cβ¦
KristinLBradley fd1af58
HDS-5572 Simplify content in SideNav nested Button content Showcase eβ¦
KristinLBradley f7927e9
HDS-5572 Add nested Button and Modal content examples to AppHeader Shβ¦
KristinLBradley 72e143a
Fix color inheritance for Buttons in DialogPrimitive
KristinLBradley 74daf21
HDS-5572 Update styles for Show Frame open link to meet a11y touch taβ¦
KristinLBradley 425e11a
HDS-5572 Add separate styling for link in AdvancedTable Showcase
KristinLBradley 28bbb8a
Update fine-rocks-trade.md
KristinLBradley 08612b3
Apply suggestions from code review
KristinLBradley 2b39532
HDS-5572 Comment out style changes for frame link to test
KristinLBradley e8fc4f8
HDS-5572 Remove unneeded constructor
KristinLBradley 1b6235e
HDS-5572 Uncomment out styles for frame link
KristinLBradley File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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,15 @@ | ||
| --- | ||
| "@hashicorp/design-system-components": patch | ||
| --- | ||
|
|
||
| <!-- START components/button --> | ||
| `Button` - Fixed color inheritance for Buttons within `DialogPrimitive` based components (such as the `Modal` and `Flyout`) when triggered from within the `SideNav` or `AppHeader` | ||
| <!-- END --> | ||
|
|
||
| <!-- START components/side-nav --> | ||
| `SideNav` - Fixed color inheritance for Buttons within `DialogPrimitive` based components (such as the `Modal` and `Flyout`) when triggered from within the `SideNav` | ||
| <!-- END --> | ||
|
|
||
| <!-- START components/app-header --> | ||
| `AppHeader` - Fixed color inheritance for Buttons within `DialogPrimitive` based components (such as the `Modal` and `Flyout`) when triggered from within the `AppHeader` | ||
| <!-- END --> | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
43 changes: 43 additions & 0 deletions
43
...nts/page-components/form/super-select/code-fragments/with-minimal-content-and-buttons.gts
This file contains hidden or 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,43 @@ | ||
| /** | ||
| * Copyright (c) HashiCorp, Inc. | ||
| * SPDX-License-Identifier: MPL-2.0 | ||
| */ | ||
| import Component from '@glimmer/component'; | ||
| import { fn } from '@ember/helper'; | ||
| import { tracked } from '@glimmer/tracking'; | ||
|
|
||
| import { HdsFormSuperSelectMultipleBase } from '@hashicorp/design-system-components/components'; | ||
|
|
||
| import type { HdsFormSuperSelectMultipleBaseSignature } from '@hashicorp/design-system-components/components/hds/form/super-select/multiple/base'; | ||
|
|
||
| const OPTIONS = ['Option 1']; | ||
|
|
||
| export interface CodeFragmentWithMultipleBaseElementSignature { | ||
| Args: { | ||
| placeholder?: HdsFormSuperSelectMultipleBaseSignature['Args']['placeholder']; | ||
| isSelected?: boolean; | ||
| options?: string; | ||
| }; | ||
| Element: HdsFormSuperSelectMultipleBaseSignature['Element']; | ||
| } | ||
|
|
||
| export default class CodeFragmentWithMultipleBaseElement extends Component<CodeFragmentWithMultipleBaseElementSignature> { | ||
| @tracked selectedOptions: string[] = []; | ||
|
|
||
| options = OPTIONS; | ||
|
|
||
| <template> | ||
| <HdsFormSuperSelectMultipleBase | ||
| @onChange={{fn (mut this.selectedOptions)}} | ||
| @options={{this.options}} | ||
| @selected={{this.selectedOptions}} | ||
| @placeholder={{@placeholder}} | ||
| @showAfterOptions={{true}} | ||
| @ariaLabel="Label" | ||
| ...attributes | ||
| as |option| | ||
| > | ||
| {{option}} | ||
| </HdsFormSuperSelectMultipleBase> | ||
| </template> | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.