no border and on hover no background change

This commit is contained in:
Aakansha Doshi 2021-03-20 13:52:15 +05:30
parent 4e41bd9dbb
commit 78024873e5
2 changed files with 11 additions and 1 deletions

View File

@ -34,6 +34,13 @@
.TextInput {
height: calc(1rem - 3px);
&--readonly {
border: none;
&:hover {
background: none;
}
}
}
}

View File

@ -59,7 +59,10 @@ export class ProjectName extends Component<Props> {
{this.props.value}
</span>
) : (
<span className="TextInput" aria-label={this.props.label}>
<span
className="TextInput TextInput--readonly"
aria-label={this.props.label}
>
{this.props.value}
</span>
);