Skip to content
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

Adding features to favourite option #528

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Sanskrita2001
Copy link

Description

Hi,
I have adjusted the styling of the favourite button in the note menubar.
I know this is a very small pull request, but we have to start somewhere ;).
I hope it is ok that I did not create an issue for this one.

Please read the Contribution Guidelines before opening a pull request. Include a summary of the change and which issue is fixed.

Closes # <-- link the issue number here

Browser checklist

This PR has been tested in the following browsers:

  • Chrome
  • Firefox
  • Safari

Testing checklist

  • End-to-end tests have been created if necessary

Copy link
Contributor

@Bartek532 Bartek532 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When you add some in UI, can you attach image/video to see effects?

<div className="icon">
<Star aria-hidden="true" className="note-favorite" size={12} />
<Star aria-hidden="true" className="note-favorite" size={12} fill="currentColor"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is currentColor?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

property that takes the value of color property, See docs

@@ -121,7 +122,7 @@ export const NoteMenuBar = () => {
{!activeNote.scratchpad && (
<>
<button className="note-menu-bar-button" onClick={favoriteNoteHandler}>
<Star aria-hidden="true" size={18} />
<Star aria-hidden="true" size={18} fill={activeNote.favorite?"currentcolor":""} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is currentcolor?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants