Browse Source

no border and on hover no background change

Aakansha Doshi 4 years ago
parent
commit
78024873e5
2 changed files with 11 additions and 1 deletions
  1. 7 0
      src/components/ExportDialog.scss
  2. 4 1
      src/components/ProjectName.tsx

+ 7 - 0
src/components/ExportDialog.scss

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

+ 4 - 1
src/components/ProjectName.tsx

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