-
Notifications
You must be signed in to change notification settings - Fork 2
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
ButtonLink: extended component as Link #184
Merged
Merged
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
38740e8
ButtonLink: extended component as Link
ioay 007ec0f
Merge branch 'main' into extend-buttonlink-component
ioay 27ff4bc
ButtonLink styles update
ioay 03a71fe
Adden theme for Link
ioay 3b07f39
Merge branch 'main' into extend-buttonlink-component
ioay a163c9d
Removed textDecoration prop from Button theme
ioay 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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { defineStyle, defineStyleConfig } from "@chakra-ui/react" | ||
|
||
const baseStyle = defineStyle({ | ||
_hover: { | ||
textDecoration: "none", | ||
}, | ||
}) | ||
|
||
export const linkTheme = defineStyleConfig({ | ||
baseStyle, | ||
}) |
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
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.
Do we need it also? I don't see designs on Figma for a ghost button.
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.
Yes, look at https://www.figma.com/file/OUdSfHsmgV8EJpWxAzXjl5/Design-Tasks?node-id=4151%3A22276&mode=dev,
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.
Yes, I see it. But there is no such button in the styleguide. That's why I wonder if we need it. The task refers to the extension of the component
ButtonLink
asLink
(extension of functionality). Therefore, it seems to me that at this PR we do not need to add it if it is not confirmed by Sorin.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.
There are not many things that are stylized, but as we agreed - we style it based on the project. Let's leave it as is, if the design changes - we will change the style. I have the impression that we are discussing here matters that are of no great importance.
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.
If you understood it that way, I'm sorry. My question was just out of curiosity because I could not find such a variant in styleguide. I wasn't sure if the topic hadn't already been discussed with Sorin before and I missed something.
Yes, of course, we can update this later, it's not a problem. I just noticed that if it's not required in the task at all, we don't need to add it now and deal with it later when needed.