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

Commit f230fe1

Browse files
authored
Merge pull request #133 from RafaelGB/visual-improvements
Visual improvements
2 parents 9d1ec0f + 5d34d4f commit f230fe1

File tree

4 files changed

+121
-154
lines changed

4 files changed

+121
-154
lines changed

src/components/img/TagsIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default function TagsIcon() {
66
width="24"
77
height="24"
88
viewBox="0 0 24 24"
9-
strokeWidth="2"
9+
strokeWidth="1.5"
1010
stroke="currentColor"
1111
fill="none"
1212
strokeLinecap="round"

src/components/portals/TagsPortal.tsx

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ const TagsPortal = (tagsProps: TagsProps) => {
103103
onChange={handleOnChange}
104104
menuPortalTarget={document.body}
105105
menuShouldBlockScroll={true}
106+
className="react-select-container"
107+
classNamePrefix="react-select"
106108
/>
107109
</div>
108110
);
@@ -112,27 +114,23 @@ const TagsPortal = (tagsProps: TagsProps) => {
112114
{showSelectTags
113115
? TagsForm()
114116
: tagsState && (
115-
<div
116-
className="d-flex flex-wrap-wrap"
117-
style={{
118-
padding: "0.75rem",
119-
}}
120-
onClick={() => setShowSelectTags(true)}
121-
>
122-
{tagsState.map((tag: string) => (
123-
<div
124-
key={`key-${tag}`}
125-
style={{ marginRight: "0.5rem", marginTop: "0.5rem" }}
126-
>
127-
<Relationship
128-
key={`key-Relationship-${tag}`}
129-
value={tag}
130-
backgroundColor={getColor(tag)}
131-
/>
132-
</div>
133-
))}
134-
</div>
135-
)}
117+
<div
118+
className={c("tags-container") + " cell-padding d-flex flex-wrap-wrap"}
119+
onClick={() => setShowSelectTags(true)}
120+
>
121+
{tagsState.map((tag: string) => (
122+
<div
123+
key={`key-${tag}`}
124+
>
125+
<Relationship
126+
key={`key-Relationship-${tag}`}
127+
value={tag}
128+
backgroundColor={getColor(tag)}
129+
/>
130+
</div>
131+
))}
132+
</div>
133+
)}
136134
</>
137135
);
138136
};

src/components/styles/TagsStyles.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ const CustomTagsStyles: StylesConfig<any, true, GroupBase<any>> = {
1010
boxSizing: "border-box",
1111
}),
1212
menu: () => ({
13-
position: "fixed",
14-
backgroundColor: `${StyleVariables.BACKGROUND_SECONDARY}`,
13+
position: "fixed"
1514
}),
1615
menuPortal: base => ({ ...base, zIndex: 9999 }),
17-
control: (styles) => ({ ...styles, backgroundColor: "white" }),
16+
control: (styles) => ({ ...styles, backgroundColor: "var(--background-primary)" }),
1817
option: (styles, { data }) => ({
1918
...styles,
20-
backgroundColor: data.color,
19+
backgroundColor: data.color + " !important",
20+
color: "rgb(66, 66, 66) !important"
2121
}),
2222
multiValue: (styles, { data }) => {
2323
return {
2424
...styles,
25-
backgroundColor: data.color,
25+
backgroundColor: data.color + " !important",
2626
};
2727
},
2828
multiValueLabel: (styles) => ({
@@ -33,7 +33,7 @@ const CustomTagsStyles: StylesConfig<any, true, GroupBase<any>> = {
3333
...styles,
3434
color: "black",
3535
":hover": {
36-
backgroundColor: data.color,
36+
backgroundColor: data.color + " !important",
3737
color: "white",
3838
},
3939
}),

0 commit comments

Comments
 (0)