Modified Chip design.

feature/appm-store/pbac
Menaka Jayawardena 7 years ago
parent 5f430a9b0d
commit c34ab35e6c

@ -34,9 +34,11 @@ class Chip extends Component {
render() {
return (
<div className="chip">
<div className="chip-content">
<div className="chip-text">{this.props.content.value}</div>
<div className="chip-close-btn" onClick={this.onDeleteClick}>
<i className="fw fw-uncheck"></i>
<i className="fw fw-error"></i>
</div>
</div>
</div>
)

@ -22,46 +22,49 @@
* (-12px-{text (Roboto-Regular 13px)}-4px-{close button}-4px-)
*/
.chip {
display: flex;
margin-right: 5px;
height: 32px;
background-color: #f1f1f1;
border-radius: 16px;
padding: 3px;
border: 10px;
}
.chip-content {
display: flex;
margin: 4px 4px 4px 12px;
}
.chip-text {
padding-top: 4px;
height: 24px;
font-family: "Roboto-Regular";
font-size: 13px;
font-weight: 400;
color: rgba(0, 0, 0, 0.87);
line-height: 20px;
padding-left: 12px;
padding-right: 4px;
padding-top: 4px;
margin-right: 4px;
user-select: none;
white-space: nowrap;
}
.chip-close-btn {
padding-left: 7px;
padding-bottom: 6px;
border-radius: 50%;
align-content: center;
padding-left: 4px;
padding-top: 1px;
display: inline-block;
height: 24px;
width: 24px;
user-select: none;
transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
cursor: pointer;
margin-right: 4px;
}
.chip-close-btn i {
font-size: 10px;
color: #a9a9a9;
color: rgba(0, 0, 0, 0.258824);
fill: rgba(0, 0, 0, 0.258824);
}
.chip-close-btn:hover {
background-color: #e1e1e1;
.chip-close-btn i:hover {
color: #959595;
}
Loading…
Cancel
Save