diff --git a/src/lib/components/TechnologyTile.svelte b/src/lib/components/TechnologyTile.svelte index 2a46129..979cd47 100644 --- a/src/lib/components/TechnologyTile.svelte +++ b/src/lib/components/TechnologyTile.svelte @@ -31,46 +31,17 @@ tech.hasOwnProperty('instances') && tech.instances.constructor === Array && tech.instances.length - ) return true; + ) { + return true; + } return false; } - function handleClick() { - console.log('clicked!'); - } - - /*document.addEventListener('keydown', (event) => { - const { activeElement } = document; - const hasButtonRole = activeElement?.getAttribute('role') === 'button'; - - if (hasButtonRole) { - // prevent default behaviour, including scrolling on spacebar - if (['Spacebar', ' ', 'Enter'].includes(event.key)) { - event.preventDefault(); - } - - if (event.key === 'Enter') { - activeElement.click(); - } - } - }); - - document.addEventListener('keyup', (event) => { - const { activeElement } = document; - const hasButtonRole = activeElement?.getAttribute('role') === 'button'; - - if (hasButtonRole && ['Spacebar', ' '].includes(event.key)) { - event.preventDefault(); - activeElement.click(); - } - });*/ - - //onclick="handleClick()" -
(showModal = !showModal)} onclick="handleClick()" role="button" tabindex=0 class="tile technology"> +
+ Modal stuff... + + Modal footer stuff... + diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 47ac1a6..6c0800a 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -724,7 +724,7 @@ min-width: 30em; border: 2px #aaa solid; margin: 0 15px 20px 6px; - padding: 0 20px; + padding: 10px 20px; box-shadow: 6px 6px 20px #999; } .summary .label {