feat(dashboard): make navigating more screenreader friendly
This commit is contained in:
		@@ -78,6 +78,7 @@
 | 
			
		||||
<Container>
 | 
			
		||||
    <Row>
 | 
			
		||||
        <Col class="mx-auto" xs={12} lg={11} xl={10}>
 | 
			
		||||
            <h2 class="visually-hidden">Viewing your own system</h2>
 | 
			
		||||
            <TabContent class="mt-3">
 | 
			
		||||
                <TabPane tabId="system" tab="System" active={tabPane === "system"}>
 | 
			
		||||
                        <SystemMain bind:user={user} bind:isPublic />
 | 
			
		||||
 
 | 
			
		||||
@@ -109,11 +109,12 @@
 | 
			
		||||
<Container>
 | 
			
		||||
    <Row>
 | 
			
		||||
        <Col class="mx-auto" xs={12} lg={11} xl={10}>
 | 
			
		||||
            <h2 class="visually-hidden">Viewing {isPublic ? "a public" : "your own"} group</h2>
 | 
			
		||||
            {#if isDeleted}
 | 
			
		||||
                <Alert color="success">Group has been successfully deleted. <Link to="/dash">Return to dash</Link></Alert>
 | 
			
		||||
            {:else}
 | 
			
		||||
            {#if isPublic}
 | 
			
		||||
                <Alert color="info">You are currently <b>viewing</b> a group.</Alert>
 | 
			
		||||
                <Alert color="info" aria-hidden>You are currently <b>viewing</b> a group.</Alert>
 | 
			
		||||
            {/if}
 | 
			
		||||
            {#if notOwnSystem}
 | 
			
		||||
                <Alert color="danger">This group does not belong to your system, did you mean to look up <Link to={`/profile/g/${group.id}`}>it's public page</Link>?</Alert>
 | 
			
		||||
 
 | 
			
		||||
@@ -115,11 +115,12 @@
 | 
			
		||||
<Container>
 | 
			
		||||
    <Row>
 | 
			
		||||
        <Col class="mx-auto" xs={12} lg={11} xl={10}>
 | 
			
		||||
            <h2 class="visually-hidden">Viewing {isPublic ? "a public" : "your own"} member</h2>
 | 
			
		||||
            {#if isDeleted}
 | 
			
		||||
                <Alert color="success">Member has been successfully deleted. <Link to="/dash">Return to dash</Link></Alert>
 | 
			
		||||
            {:else}
 | 
			
		||||
            {#if isPublic}
 | 
			
		||||
                <Alert color="info">You are currently <b>viewing</b> a member.</Alert>
 | 
			
		||||
                <Alert color="info" aria-hidden>You are currently <b>viewing</b> a member.</Alert>
 | 
			
		||||
            {/if}
 | 
			
		||||
            {#if notOwnSystem}
 | 
			
		||||
                <Alert color="danger">This member does not belong to your system, did you mean to look up <Link to={`/profile/m/${member.id}`}>their public page</Link>?</Alert>
 | 
			
		||||
 
 | 
			
		||||
@@ -57,6 +57,7 @@
 | 
			
		||||
{/if}
 | 
			
		||||
<Container>
 | 
			
		||||
    <Row>
 | 
			
		||||
        <h1 class="visually-hidden">Viewing a public system</h1>
 | 
			
		||||
        <Col class="mx-auto" xs={12} lg={11} xl={10}>
 | 
			
		||||
            {#if !user.id && !err}
 | 
			
		||||
            <div class="mx-auto text-center">
 | 
			
		||||
@@ -65,7 +66,7 @@
 | 
			
		||||
            {:else if err}
 | 
			
		||||
                <Alert color="danger">{err}</Alert>
 | 
			
		||||
            {:else}
 | 
			
		||||
            <Alert color="info">You are currently <b>viewing</b> a system.</Alert>
 | 
			
		||||
            <Alert color="info" aria-hidden>You are currently <b>viewing</b> a system.</Alert>
 | 
			
		||||
            <TabContent class="mt-3">
 | 
			
		||||
                <TabPane tabId="system" tab="System" active={tabPane === "system"}>
 | 
			
		||||
                        <SystemMain bind:user isPublic={true} />
 | 
			
		||||
 
 | 
			
		||||
@@ -163,4 +163,16 @@ img.emoji {
 | 
			
		||||
    width: auto;
 | 
			
		||||
    margin: 0 .05em 0 .1em;
 | 
			
		||||
    vertical-align: -0.1125em;
 | 
			
		||||
 }
 | 
			
		||||
 }
 | 
			
		||||
 | 
			
		||||
 //misc
 | 
			
		||||
 .visually-hidden {
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    width: 1px;
 | 
			
		||||
    height: 1px;
 | 
			
		||||
    padding: 0;
 | 
			
		||||
    overflow: hidden;
 | 
			
		||||
    clip: rect(0, 0, 0, 0);
 | 
			
		||||
    white-space: nowrap;
 | 
			
		||||
    border: 0;
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user