Skip to content

fix feedback issues #6332

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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed src/assets/images/icon-circle.png
Binary file not shown.
3 changes: 3 additions & 0 deletions src/assets/images/icon-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 7 additions & 3 deletions src/shared/components/DateRangePicker/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,13 @@ function DateRangePicker(props) {
setPreview({
startDate: date,
endDate: range.endDate || date,
color: '#137d60',
});
} else if (isEndDateFocused && date) {
setPreview({
startDate: range.startDate || date,
endDate: date,
color: '#137d60',
});
}

Expand Down Expand Up @@ -368,21 +370,21 @@ function DateRangePicker(props) {
{
...range,
key: 'selection',
color: '#0B71E6',
color: '#137d60',
},
{
startDate: activeDate,
endDate: activeDate,
key: 'active',
color: '#59A7FF',
color: '#137d60',
},
];
}
return [
{
...range,
key: 'selection',
color: '#0A81FF',
color: '#137d60',
},
];
};
Expand Down Expand Up @@ -453,6 +455,8 @@ function DateRangePicker(props) {
shownDate={getShownDate()}
preview={preview}
onPreviewChange={onPreviewChange}
rangeColors={'#137d60'}
color='#137d60'
/>
<button
type="button"
Expand Down
24 changes: 13 additions & 11 deletions src/shared/components/DateRangePicker/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,20 @@

.isRange {
:global {
.rdrStartEdge, .rdrEndEdge {
color: $listing-checkbox-green !important;
}
.rdrDayHovered {
background: $listing-checkbox-green !important;
}
.rdrDay {
.rdrStartEdge,
.rdrEndEdge {
background: $listing-checkbox-green !important;
.rdrInRange {
background: lighten($listing-checkbox-green, 30%) !important;
}

.rdrInRange {
background: $listing-checkbox-green !important;
.rdrStartEdge,
.rdrEndEdge {
background: lighten($listing-checkbox-green, 30%) !important;
}
}
}
Expand Down Expand Up @@ -114,10 +120,6 @@
}
}

.rdrMonthAndYearPickers select {
background: url("data:image/svg+xml;utf8,<svg width='9px' height='6px' viewBox='0 0 9 6' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'><g id='Artboard' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' transform='translate(-636.000000, -171.000000)'><g id='input' transform='translate(172.000000, 37.000000)' fill='%230B71E6' fill-rule='nonzero'><g id='Group-9' transform='translate(323.000000, 127.000000)'><path d='M142.280245,7.23952813 C141.987305,6.92353472 141.512432,6.92361662 141.219585,7.23971106 C140.926739,7.5558055 140.926815,8.06821394 141.219755,8.38420735 L145.498801,13 L149.780245,8.38162071 C150.073185,8.0656273 150.073261,7.55321886 149.780415,7.23712442 C149.487568,6.92102998 149.012695,6.92094808 148.719755,7.23694149 L145.498801,10.7113732 L142.280245,7.23952813 Z' id='arrow'></path></g></g></g></svg>") no-repeat right 8px center;
}

.rdrNextPrevButton {
position: relative;
width: 22px;
Expand Down Expand Up @@ -257,7 +259,7 @@
width: 36px;
height: 36px;
left: 4px;
border: 1px solid $tc-dark-blue-70;
border: 1px solid lighten($listing-checkbox-green, 70%);
}

.rdrSelected,
Expand All @@ -272,7 +274,7 @@
.rdrDayInPreview,
.rdrDayStartPreview,
.rdrDayEndPreview {
border-color: $tc-dark-blue-70;
border-color: lighten($listing-checkbox-green, 70%);
top: 0;
bottom: 0;
}
Expand Down
4 changes: 4 additions & 0 deletions src/shared/components/SortingSelectBar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ $down-arrow-size: $base-unit;
overflow: visible;
}

.Select.is-focused:not(.is-open) > .Select-control {
border-color: #137d60 !important;
}

.Select-value-label {
@include roboto-regular;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@
}

.tooltip {
font-weight: 500;
font-size: 13px;
font-weight: 400;
font-size: 14px;
line-height: 22px;
color: $tc-white;
letter-spacing: 0;
padding: 15px;
padding: 10px;
border-radius: 8px;
background-color: #2a2a2a;
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@
}

.tooltip {
font-weight: 500;
font-size: 13px;
font-weight: 400;
font-size: 14px;
line-height: 22px;
color: $tc-white;
letter-spacing: 0;
padding: 15px;
padding: 10px;
border-radius: 8px;
background-color: #2a2a2a;
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $prize-space-10: $base-unit * 2;
@include roboto-regular;

max-width: 480px;
padding: 15px;
padding: 10px 10px 0 10px;
overflow: hidden;

.bonuses {
Expand All @@ -15,15 +15,16 @@ $prize-space-10: $base-unit * 2;
}

h1 {
@include roboto-regular;
border: none;
color: $tc-white;
font-size: 15px;
line-height: 15px;
font-size: 14px;
line-height: 16px;
margin: 0 0 $prize-space-10;
padding: 0;
text-align: left;
text-transform: none;
font-weight: 700;
font-weight: 500;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import ChallengeSearchBar from 'containers/challenge-listing/ChallengeSearchBar'
import { challenge as challengeUtils } from 'topcoder-react-lib';
import { createStaticRanges } from 'utils/challenge-listing/date-range';
import ArrowIcon from 'assets/images/ico-arrow-down.svg';
import CircleIcon from 'assets/images/icon-circle.png';
import CircleIcon from 'assets/images/icon-circle.svg';
import Button from '../Button';
import UiSimpleRemove from '../../Icons/ui-simple-remove.svg';
import BucketSelector from '../../Sidebar/BucketSelector';
Expand Down Expand Up @@ -646,7 +646,7 @@ export default function FiltersPanel({
className={style['tooltip-overlay']}
trigger={['hover', 'focus']}
>
<img src={CircleIcon} alt="circle-icon" />
<CircleIcon />
</Tooltip>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ hr.hr {
display: inline-block;
line-height: 30px;
min-width: 96px;
width: 128px;
width: 50%;
margin-bottom: 6px;

@include xs-to-md {
Expand Down Expand Up @@ -467,8 +467,8 @@ hr.hr {

&:checked + .checkbox-label {
&::before {
background-color: #0681ff;
border-color: #0681ff;
background-color: $listing-checkbox-green;
border-color: $listing-checkbox-green;
}

&::after {
Expand Down Expand Up @@ -590,6 +590,7 @@ hr.hr {

.Select-menu-outer {
margin-top: 1px;
font-size: 14px;
}
}
}
Expand All @@ -610,11 +611,15 @@ hr.hr {

.recommended-challenge-tooltip {
position: absolute;
right: 48px;
right: 54px;
display: flex;
flex-direction: column;
justify-content: center;
height: 100%;

@include xs-to-md {
left: 210px;
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

.container {
min-height: 178px;
background-color: #fff;
background-color: #f4f4f4;
border-radius: 4px;
display: flex;
justify-content: center;
flex-direction: column;
margin-top: 20px;
margin: 16px 24px 24px 24px;
}

.icon {
Expand Down Expand Up @@ -52,7 +52,6 @@

.challenge-link {
color: #2862b9;
text-decoration: underline;

&:hover,
&:active,
Expand Down
59 changes: 29 additions & 30 deletions src/shared/components/challenge-listing/Tags.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import './style.scss';
const VISIBLE_TAGS = 3;

/**
* Implements <Tags> component
*/
* Implements <Tags> component
*/
export default function Tags({
expand, isExpanded, tags, onTechTagClicked, challengesUrl, recommended, verifiedTags,
}) {
Expand All @@ -38,33 +38,33 @@ export default function Tags({
const additionalTags = (items, verifiedTagIndex) => (
<div styleName="additionalTagWrapper">
{
items.map((item, index) => {
if (index < verifiedTagIndex) {
return (
<VerifiedTag
challengesUrl={challengesUrl}
item={item}
onClick={onClick}
recommended={recommended}
/>
);
}
return (
(
<div styleName="additionalTag">
<Tag
onClick={() => onClick(item.trim())}
key={item}
role="button"
to={tagRedirectLink(item)}
>
<span>{item}</span>
</Tag>
</div>
)
);
})
}
items.map((item, index) => {
if (index < verifiedTagIndex) {
return (
<VerifiedTag
challengesUrl={challengesUrl}
item={item}
onClick={onClick}
recommended={recommended}
/>
);
}
return (
(
<div styleName="additionalTag">
<Tag
onClick={() => onClick(item.trim())}
key={item}
role="button"
to={tagRedirectLink(item)}
>
<span>{item}</span>
</Tag>
</div>
)
);
})
}
</div>
);

Expand Down Expand Up @@ -94,7 +94,6 @@ export default function Tags({
allTags.slice(VISIBLE_TAGS), verifiedTags.length - VISIBLE_TAGS,
)}
trigger={['hover', 'focus']}
className="overlayTagBg"
>
<Tag
onClick={() => onClick(item.trim())}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ div.progress-bar-tooltip {
color: $tc-white;
max-width: none;
padding: 0 $base-unit * 3;
background-color: #2a2a2a;

.rc-tooltip-inner {
padding: 0 $base-unit * 3;
Expand All @@ -28,7 +29,7 @@ div.progress-bar-tooltip {
line-height: $tip-space-15;
min-width: $tip-offset;
padding: $tip-space-15 0;
background: $tc-gray-80;
background: #2a2a2a;
width: $tip-space-95;

&:last-child {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ import Tooltip from 'components/Tooltip';
import './style.scss';

/**
* Renders the tooltip's content.
*/
* Renders the tooltip's content.
*/
function Tip({
track,
type,
}) {
const trackStyle = track.replace(' ', '-').toLowerCase();
return (
<div styleName="track-abbreviation-tooltip">
<div styleName={`header ${trackStyle}`}>
<div styleName="header">
{type.name}
</div>
<div styleName="body">
Expand All @@ -46,8 +46,8 @@ function placeArrow(TooltipNode) {
}

/**
* Renders the tooltip.
*/
* Renders the tooltip.
*/
function TrackAbbreviationTooltip({
children,
track,
Expand Down
Loading