18219: Improves the edit button styling at the details panel.
[arvados-workbench2.git] / src / views-components / details-panel / project-details.tsx
index c3c3d68e33648c0e91c34fcb485081a0ab541f22..8ed15b317fb308c8c901f59906f01fb2d2f8b077 100644 (file)
@@ -33,7 +33,7 @@ export class ProjectDetails extends DetailsData<ProjectResource> {
     }
 }
 
-type CssRules = 'tag' | 'editIcon';
+type CssRules = 'tag' | 'editIcon' | 'editButton';
 
 const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
     tag: {
@@ -43,7 +43,12 @@ const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
     editIcon: {
         paddingRight: theme.spacing.unit/2,
         fontSize: '1.125rem',
-    }
+    },
+    editButton: {
+        boxShadow: 'none',
+        padding: '2px 10px 2px 5px',
+        fontSize: '0.75rem'
+    },
 });
 
 interface ProjectDetailsComponentDataProps {
@@ -70,7 +75,9 @@ const ProjectDetailsComponent = connect(null, mapDispatchToProps)(
                         name: project.name,
                         description: project.description,
                         properties: project.properties,
-                    })}>
+                    })}
+                        className={classes.editButton} variant='contained'
+                        data-cy='details-panel-edit-btn' color='primary' size='small'>
                         <RenameIcon className={classes.editIcon} /> Edit
                     </Button>
                     : ''