feat: add appearance and deprecate ondark #304#306
Conversation
Reviewer's GuideIntroduce a new Class diagram for updated hyperlink component attributesclassDiagram
class ComponentBase {
+String appearance = 'default'
+Boolean ondark (deprecated)
+Boolean download
+Boolean relative
+String href
+String referrerpolicy
+String rel
+Boolean fluid
+String role
+String safeUri
+String target
+String type
+String variant
}
class AuroElement {
+String appearance = 'default'
+String lang
}
class AuroHyperlink {
+String appearance
+Boolean ondark (deprecated)
+String type
+String variant
+String role
+String safeUri
+Boolean fluid
+String target
+String href
+String rel
+String referrerpolicy
+Boolean download
+Boolean relative
}
ComponentBase <|-- AuroHyperlink
AuroElement <|-- ComponentBase
File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Surge demo deployment failed! 😭 |
48a878e to
2659023
Compare
2659023 to
841c04b
Compare
There was a problem hiding this comment.
Hey there - I've reviewed your changes and they look great!
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location> `src/auro-hyperlink.js:117` </location>
<code_context>
hyperlink: this.safeUri || this.role,
"hyperlink--nav": this.type === "nav",
- "hyperlink--ondark": this.ondark,
+ 'hyperlink--ondark': this.appearance === 'inverse' || this.ondark,
"hyperlink--button": this.role,
"hyperlink--secondary": this.variant === "secondary",
</code_context>
<issue_to_address>
**issue (bug_risk):** Combining 'appearance' and 'ondark' may cause ambiguous styling.
If both 'appearance' and 'ondark' are set, clarify which should take precedence or add a warning to prevent conflicting states.
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
0769650 to
841c04b
Compare
841c04b to
95aa27d
Compare
|
🚀 PR Release Published! To install: npm install @aurodesignsystem-dev/auro-hyperlink@0.0.0-pr306.1Install via alias: npm install @aurodesignsystem/auro-hyperlink@npm:@aurodesignsystem-dev/auro-hyperlink@0.0.0-pr306.1 |
jordanjones243
left a comment
There was a problem hiding this comment.
Change name of ondark files and this PR is good to go
95aa27d to
20bfff6
Compare
|
🎉 This PR is included in version 7.0.0-rc-309.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 7.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 7.0.0-rc-320.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 7.0.0-rc-329.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 7.0.0-rc-336.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 7.0.0-rc-339.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Alaska Airlines Pull Request
Close #304
This is to replace
onDarkattr withsurfaceattr.surfacewith its default valuelightonDarkas deprecated in the api tableonDarkwithsurface="dark"in all examplesChecklist:
By submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Pull Requests will be evaluated by their quality of update and whether it is consistent with the goals and values of this project. Any submission is to be considered a conversation between the submitter and the maintainers of this project and may require changes to your submission.
Thank you for your submission!
-- Auro Design System Team
Summary by Sourcery
Introduce a new
appearanceattribute to control light or dark styling and deprecate theondarkflag across the hyperlink component.New Features:
appearanceproperty with default value'default'to replaceondark.Enhancements:
appearancefor theme variants while markingondarkas deprecated.appearanceand maintain backward compatibility withondark.Documentation:
ondarkwithappearance="inverse"and note deprecation ofondark.Chores:
@aurodesignsystem/auro-buttonand@aurodesignsystem/auro-icon.