Skip to content

Commit

Permalink
add button styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Salam-Dalloul committed Feb 28, 2024
1 parent 098a33a commit df0e265
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
19 changes: 14 additions & 5 deletions src/components/NodeDetailView/Details/DatasetDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, {useEffect} from "react";
import {
Box,
Typography,
Divider,
Divider, Button,
} from "@material-ui/core";
import Links from './Views/Links';
import SimpleLinkedChip from './Views/SimpleLinkedChip';
Expand Down Expand Up @@ -100,11 +100,20 @@ const DatasetDetails = (props) => {

<Box id={node.graph_node?.id + detailsLabel}>
<Divider />
<button onClick={exportToPDF}>Export PDF</button>
<Box className="tab-content">
<Box className='title-container'>
<DatasetIcon />
<Typography component="h3">Dataset Details</Typography>
<Box className='title-container' sx={{
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
}}>
<Box sx={{
display: 'flex',
alignItems: 'center',
}}>
<DatasetIcon />
<Typography component="h3">Dataset Details</Typography>
</Box>
<Button className="containedSecondary" disableElevation onClick={exportToPDF}>Export PDF</Button>
</Box>
{datasetPropertiesModel?.map( property => {
if ( property.visible ){
Expand Down
1 change: 1 addition & 0 deletions src/styles/constant.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const vars = {
grey50: '#E1E3E8',
grey25: '#F0F1F2',
grey600: '#2E3A59',
lightblue: 'rgba(55, 121, 225, 0.10)'
};

export default vars;
11 changes: 10 additions & 1 deletion src/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ const {
grey600,
gray800,
gray400,
gray25
gray25,
lightblue
} = vars;

const theme = createTheme({
Expand Down Expand Up @@ -368,6 +369,14 @@ const theme = createTheme({
height: '2.375rem',
padding: 0,
minWidth: '9.875rem',

'&.containedSecondary': {
backgroundColor: lightblue,
color: primaryColor,
minWidth: 'fit-content',
padding: '0.75rem',
height: '2.4375rem',
},
},
label: {
textTransform: 'none',
Expand Down

0 comments on commit df0e265

Please sign in to comment.