Skip to content

Commit 4dd78d4

Browse files
committed
Merge branch 'leftPanel' of https://github.com/aw2934/ReacType into merge
2 parents 3a78977 + 3bb4b0e commit 4dd78d4

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

app/src/components/left/HTMLItem.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const buttonClasses =
1313

1414
const useStyles = makeStyles({
1515
HTMLPanelItem: {
16+
color: '#186BB4',
1617
height: '35px',
1718
width: '90px',
1819
fontSize: '80%',
@@ -127,10 +128,10 @@ const HTMLItem : React.FC<{
127128
</div>}
128129
{id > 11 &&
129130
<span id="customHTMLElement">
130-
<div ref={drag} className={classes.HTMLPanelItem} id="HTMLItem">
131+
<div ref={drag} className={isThemeLight ? `${classes.HTMLPanelItem} ${classes.lightThemeFontColor}` : `${classes.HTMLPanelItem} ${classes.darkThemeFontColor}`} id="HTMLItem">
131132
<h3>{name}</h3>
132133
</div>
133-
<button id="newElement" onClick={() => deleteAllInstances(id)} >X</button>
134+
<button id="newElement" style={{color: isThemeLight ? '#186BB4' : 'white' }} onClick={() => deleteAllInstances(id)} >X</button>
134135
</span>
135136
}
136137
{modal}

app/src/components/left/HTMLPanel.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ const HTMLPanel = (props): JSX.Element => {
174174
<div className={classes.addComponentWrapper}>
175175
<div className={classes.inputWrapper}>
176176
<form onSubmit={handleSubmit} className="customForm">
177+
177178
<h5 className={isThemeLight ? classes.lightThemeFontColor : classes.darkThemeFontColor }>New HTML Tag: </h5>
178179
<label className={isThemeLight ? `${classes.inputLabel} ${classes.lightThemeFontColor}` : `${classes.inputLabel} ${classes.darkThemeFontColor}`}>
179180
Tag:

app/src/public/styles/style.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ LEFT COLUMN
151151
}
152152

153153
#HTMLItem:hover {
154-
background-color: #a7cced;
154+
background-color: #297ac2;
155155
color: white;
156156
}
157157

@@ -160,13 +160,13 @@ LEFT COLUMN
160160
}
161161

162162
#submitButton:hover {
163-
background-color: #a7cced;
163+
background-color: #297ac2;
164164
color: white;
165165
border: none;
166166
}
167167

168168
#addComponentButton:hover {
169-
background-color: #a7cced;
169+
background-color: #297ac2;
170170
color: white;
171171
border: none;
172172
cursor: pointer;
@@ -206,8 +206,9 @@ LEFT COLUMN
206206

207207
/* deleteAllInstances button in HTMLItem.tsx - 'x' attached to custom HTML element */
208208
#newElement {
209-
color: #186BB4;
209+
/* color: #186BB4; */
210210
border: none;
211+
background: none;
211212
display: flex;
212213
align-items: center;
213214
justify-content: flex-start;

0 commit comments

Comments
 (0)