diff --git a/frontend/src/components/dialog/create-tag-dialog.js b/frontend/src/components/dialog/create-tag-dialog.js index fe37b4f690..81c64abdba 100644 --- a/frontend/src/components/dialog/create-tag-dialog.js +++ b/frontend/src/components/dialog/create-tag-dialog.js @@ -20,7 +20,7 @@ class CreateTagDialog extends React.Component { tagColor: '', newTag: {}, errorMsg: '', - colorList: ['#FFA8A8', '#FFA94D', '#FFD43B', '#A0EC50', '#A9E34B', '#63E6BE', '#4FD2C9', '#72C3FC', '#91A7FF', '#E599F7', '#B197FC', '#F783AC', '#CED4DA'], + colorList: ['#FBD44A', '#EAA775', '#F4667C', '#DC82D2', '#9860E5', '#9F8CF1', '#59CB74', '#ADDF84', '#89D2EA', '#4ECCCB', '#46A1FD', '#C2C2C2'], }; this.newInput = React.createRef(); } @@ -92,15 +92,17 @@ class CreateTagDialog extends React.Component {
-
+
{colorList.map((item, index)=>{ return ( -
+
); diff --git a/frontend/src/css/repo-tag.css b/frontend/src/css/repo-tag.css index 524a7a4a38..9a7e265451 100644 --- a/frontend/src/css/repo-tag.css +++ b/frontend/src/css/repo-tag.css @@ -102,7 +102,21 @@ cursor: pointer; margin-right: 10px; } + .tag-dialog-back:hover, .tag-dialog-back:focus { color: #444; } + +/* overwrite the code from seafile-ui */ +.tag-color-option .colorinput-color::before { + display: none; +} + +.tag-color-option .color-selected { + opacity: 0; +} + +.tag-color-option .colorinput-input:checked ~ .colorinput-color .color-selected { + opacity: 1; +}