CLASSROOMIO-T-97: Course UI improvement 😁😁😁

This commit is contained in:
Rotimi Best
2023-08-05 04:44:32 +01:00
parent 131bb878ee
commit d542a4f7e3
27 changed files with 258 additions and 319 deletions
+7 -4
View File
@@ -1,6 +1,7 @@
<script>
import ToolTip from '../ToolTip/index.svelte';
export let onClick = () => {};
export let stopPropagation = false;
export let disabled = false;
export let selected = false;
export let buttonClassName = '';
@@ -12,10 +13,13 @@
export let toolTipProps = {
title: '',
hotkeys: [],
direction: '',
direction: ''
};
function handleClick() {
function handleClick(e) {
if (stopPropagation) {
e.stopPropagation();
}
onClick(value);
}
</script>
@@ -26,8 +30,7 @@
direction={toolTipProps.direction}
>
<button
class="root {color} {selected && 'active'} {size} {contained &&
'contained'} {buttonClassName}"
class="root {color} {selected && 'active'} {size} {contained && 'contained'} {buttonClassName}"
{disabled}
{type}
on:click={handleClick}