CSSをどうにかするのを諦める
This commit is contained in:
parent
196819270b
commit
ae79f0225e
10
resources/assets/js/components/TagInput.scss
vendored
10
resources/assets/js/components/TagInput.scss
vendored
@ -1,10 +0,0 @@
|
||||
:local {
|
||||
.tag-item {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.tag-input {
|
||||
border: 0;
|
||||
outline: 0;
|
||||
}
|
||||
}
|
@ -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}
|
||||
|
1
resources/assets/sass/app.scss
vendored
1
resources/assets/sass/app.scss
vendored
@ -13,6 +13,7 @@ $primary: #e53fb1;
|
||||
// Components
|
||||
@import "components/ejaculation";
|
||||
@import "components/link-card";
|
||||
@import "components/tag-input";
|
||||
|
||||
// Tag
|
||||
@import "tag/index";
|
||||
|
8
resources/assets/sass/components/_tag-input.scss
vendored
Normal file
8
resources/assets/sass/components/_tag-input.scss
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
.tis-tag-input-item {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.tis-tag-input-field {
|
||||
border: 0;
|
||||
outline: 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user