-
Notifications
You must be signed in to change notification settings - Fork 401
refactor: [M3-9431] [Akamai Design System] Radio Button Component #11878
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
bill-akamai
merged 13 commits into
linode:develop
from
bill-akamai:M3-9431-akamai-design-system-radio-button-component
Mar 24, 2025
Merged
Changes from 10 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
92df40b
Tokenize radio button styles
bill-akamai c06ca7f
Add RadioButtonTypes
bill-akamai f1afdb8
Fix viewbox size
bill-akamai ac52448
Add dark Radio Button types and object
bill-akamai 917baab
Remove hardcoded color fill for disabled button
bill-akamai 50e483a
Added changeset: Updated Radio Button component to conform to Akamai β¦
bill-akamai 6241f69
Fix Radio component test to match updated SVG structure
bill-akamai 16d173c
Merge branch 'develop' into M3-9431-akamai-design-system-radio-buttonβ¦
bill-akamai 224de3c
Use new tokens accessors
bill-akamai 64edd68
Add correct font-size to dark mode
bill-akamai b43e60b
Create consistent padding b/t light and dark themes
bill-akamai fe41ec2
Share fontSize prop b/t light and dark
bill-akamai cdd1766
Merge branch 'develop' into M3-9431-akamai-design-system-radio-buttonβ¦
bill-akamai 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
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
packages/manager/.changeset/pr-11878-changed-1742325899299.md
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,5 @@ | ||
| --- | ||
| "@linode/manager": Changed | ||
| --- | ||
|
|
||
| Updated Radio Button component to conform to Akamai Design System specs ([#11878](https://github.com/linode/manager/pull/11878)) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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.
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.
I think setting the size in light.ts will apply to both
dark.ts inherits light.ts defaults via deep merge (dark.ts is basically an override)
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.
@hana-akamai input size updated, thanks!
@abailly-akamai something might be incorrect in our implementation here. I had to explicitly add the adjustments in
dark.tsto see that change take effect. The deep merge doesn't seem to be carrying over all style properties as expected. I'll look to see why.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.
Ah I see. Maybe something has changed recently. perhaps @jaalah-akamai has input?
I still find the theme setup quite mysterious in many aspects
Uh oh!
There was an error while loading. Please reload this page.
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.
@abailly-akamai I'm a bit new to this setup myself but I've found that the theme inheritance works differently based on how styles are defined. Static styles defined as objects (like
MuiSvgIcon) get inherited between themes, but functional styles (like theMuiRadiostyles that use({ theme }) => ({}))don't do this inheritance. So no prob whenlight.tsdefines the shared style as the static object but the functional styles would need a shared constant or utility function to avoid duplication if I'm understanding things correctly.