CSSをどうにかするのを諦める

This commit is contained in:
shibafu 2020-08-12 23:05:38 +09:00
parent 196819270b
commit ae79f0225e
4 changed files with 11 additions and 13 deletions

View File

@ -1,10 +0,0 @@
:local {
.tag-item {
cursor: pointer;
}
.tag-input {
border: 0;
outline: 0;
}
}

View File

@ -1,7 +1,6 @@
import * as React from 'react';
import { useState, useRef } from 'react';
import * as classNames from 'classnames';
const styles = require('./TagInput.scss'); // TODO: 読めてない
type TagInputProps = {
id: string;
@ -53,7 +52,7 @@ const TagInput: React.FC<TagInputProps> = ({ id, name, value, isInvalid }) => {
{tags.map((tag, i) => (
<li
key={i}
className={classNames('list-inline-item', 'badge', 'badge-primary', styles.tagItem)}
className={classNames('list-inline-item', 'badge', 'badge-primary', 'tis-tag-input-item')}
onClick={() => removeTag(i)}
>
<span className="oi oi-tag" /> {tag} | x
@ -64,7 +63,7 @@ const TagInput: React.FC<TagInputProps> = ({ id, name, value, isInvalid }) => {
id={id}
ref={inputRef}
type="text"
className={styles.tagInput}
className="tis-tag-input-field"
value={buffer}
onChange={(e) => setBuffer(e.target.value)}
onKeyDown={onKeyDown}

View File

@ -13,6 +13,7 @@ $primary: #e53fb1;
// Components
@import "components/ejaculation";
@import "components/link-card";
@import "components/tag-input";
// Tag
@import "tag/index";

View File

@ -0,0 +1,8 @@
.tis-tag-input-item {
cursor: pointer;
}
.tis-tag-input-field {
border: 0;
outline: 0;
}