Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

[$20] - Color of the Complete Appeals button #1003

Closed
birdofpreyru opened this issue Feb 15, 2017 · 16 comments
Closed

[$20] - Color of the Complete Appeals button #1003

birdofpreyru opened this issue Feb 15, 2017 · 16 comments
Assignees

Comments

@birdofpreyru
Copy link
Collaborator

birdofpreyru commented Feb 15, 2017

Recently we have added Complete Appeals button to the challenge listing in the dashboard (#992, not yet in prod). Currently it is styled as any other button in the challenge card: white background, blue text, blue border in the regular state; blue background, white text in the hovered state.

As completing appeals too early may change contenstant's destinity, and thus potentially dangerous operation, let's change the color being used in this button from blue to the reddish #e66.

@birdofpreyru
Copy link
Collaborator Author

@ThomasKranitsas How do you build topcoder-app so that it uses the stylesheet from the updated version of tc-site repo?

@ThomasKranitsas
Copy link
Contributor

@birdofpreyru I've no idea 😛 I just found where the css code for that button is and I updated it

@birdofpreyru
Copy link
Collaborator Author

@ThomasKranitsas You might found it wrong :-P After some inverstigation, I tend to believe that topcoder-app imports button styles (and some other styling) from styles repo (my best understanding, though I also might be wrong, as relations between different repos hosting different parts of tc are still quite a puzzle for me). Though, there is a problem: the first thing I see in styles repo is the warning DEPRICATED! DO NOT USE!.

I think, we should move the styling related to this ticket into topcoder-app, probably along with some related styling. But I would like to hear from @ajefts about it (whether I am right, and whether moving it to topcoder-app is a good idea, or there are some other plans at TC about it).

@birdofpreyru
Copy link
Collaborator Author

birdofpreyru commented Feb 16, 2017

@ThomasKranitsas Actually, as the stylesheets in topcoder-app overrides (I believe) those imported from other repos anyway, let's just add the style for tc-btn-appeal class to topcoder-app/assets/css/my-dashboard/my-dashboard.scss (or .../my-challenges.scss, if it is more appropriate). This way we resolve this issue in a secure way, and if we have any other input on styles, etc. we'll open new tickets.

@birdofpreyru birdofpreyru changed the title [$5] - Color of the Complete Appeals button [$10] - Color of the Complete Appeals button Feb 16, 2017
@ThomasKranitsas
Copy link
Contributor

Okay.. I'll do that later today

@birdofpreyru
Copy link
Collaborator Author

@ThomasKranitsas Any update?

@birdofpreyru
Copy link
Collaborator Author

Hey @ThomasKranitsas, how are you doing? :)

Are you still planning to finish this one? I am preparing to start another Bug Bash this weekend. If you are not interested in this ticket anymore, I'll open it for that Bug Bash.

@ThomasKranitsas
Copy link
Contributor

Hey @birdofpreyru, I completely forgot about this one.. I was extremely busy..
Sure you can open it for the next Bug Bash as I don't have enough time to fix it today.

Sorry and thanks for your understanding!

@birdofpreyru
Copy link
Collaborator Author

Update

This is still should be done. The styling should reside in topcoder-app repo, and should not be specific to the Complete Appeals button (i.e. don't name corresponding class after that button, call it something like btn-danger, as we'll have another buttons using this color scheme).

@birdofpreyru birdofpreyru changed the title [$10] - Color of the Complete Appeals button [$20] - Color of the Complete Appeals button Mar 12, 2017
@Savvas-cl
Copy link
Contributor

@birdofpreyru pls give me permission so I can self-assign and change labels. Thank you.

@birdofpreyru
Copy link
Collaborator Author

@Savvas-cl Permissions granted

@Savvas-cl
Copy link
Contributor

@birdofpreyru as it will be a non-specific to challenges button styling. I think that the most appropriate place to put the css styling is in this file:
topcoder-app/node-modules/appirio-styles/styles/topcoder/_tc-buttons.scss

Is this okay?

@birdofpreyru
Copy link
Collaborator Author

@Savvas-cl: Nope, because the first thing I see when open that repo (https://github.com/appirio-tech/styles) is DEPRICATED! DO NOT USE!.

Please, just put the new style into this repo.

@Savvas-cl
Copy link
Contributor

Savvas-cl commented Mar 13, 2017

@birdofpreyru so in either of the following two is it okay?
/css/my-dashboard/my-dashboard.scss (or .../my-challenges.scss)

@birdofpreyru
Copy link
Collaborator Author

Should be in the same file, where the challenge tiles for the Dashboard are styled.
It looks to me, that they are styled in the .../assets/css/directives/challenge-tile.scss,
but, please, double-check.

@Savvas-cl
Copy link
Contributor

Yes that was the other option I had. I did not want to put it there because no other button related styling lies there. But I think its okay. Thanks.

Savvas-cl added a commit to Savvas-cl/topcoder-app that referenced this issue Mar 13, 2017
The color of the complete appeals color has been changed.
A new class btn-danger has been added which changes the styling color
of the button to #e66 as requested. Also hover and active states are supported
To test just modify file challenge-tile.jade so the Complete Appeals buttons
appears.
birdofpreyru added a commit that referenced this issue Mar 13, 2017
Fix for issue #1003 Color of the Complete Appeals button
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants