Skip to content

Commit ab67893

Browse files
committed
updated styling of toggle switch
1 parent a417743 commit ab67893

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

app/src/components/main/Canvas.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function Canvas(props: {}): JSX.Element {
123123

124124
console.log('Toggle Switch:', toggleSwitch);
125125

126-
//Function to handle the click events
126+
//Function to handle the click events.
127127
const multipleClicks = () => {
128128
handleToggleSwitch();
129129
toggleButton();
@@ -360,10 +360,13 @@ function Canvas(props: {}): JSX.Element {
360360
textAlign: 'center',
361361
color: '#ffffff',
362362
backgroundColor: '#151515',
363-
zIndex: 0
363+
zIndex: 0,
364+
padding: '5px',
365+
borderColor: '#46C0A5',
366+
borderRadius: '5px'
364367
}}
365368
>
366-
{toggleText === 'on' ? 'Turn On' : 'Turn Off'}
369+
{toggleText === 'on' ? 'View Cursors' : 'Hide Cursors'}
367370
</button>
368371
)}
369372
</label>

0 commit comments

Comments
 (0)