Skip to content

Commit 25d7de4

Browse files
authored
Merge pull request #100 from incluud/next
Next
2 parents ba5220e + a478312 commit 25d7de4

File tree

9 files changed

+1395
-1396
lines changed

9 files changed

+1395
-1396
lines changed

Breadcrumbs.astro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@ interface Props {
1818
children: BreadcrumbsItem | BreadcrumbsItem[]
1919
/**
2020
* Accessible label for the breadcrumb navigation
21+
* @default 'Breadcrumbs'
2122
*/
22-
ariaLabel: string
23+
ariaLabel?: string
2324
}
2425
2526
const { class: classNames, ariaLabel = 'Breadcrumbs' } = Astro.props
2627
---
2728

2829
<nav class:list={['breadcrumbs', classNames]} aria-label={ariaLabel}>
29-
<ol>
30+
<ol class="list">
3031
<slot />
3132
</ol>
3233
</nav>

BreadcrumbsItem.astro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ const {
7979
align-items: center;
8080
}
8181

82+
.item :global(.separator svg) {
83+
margin-block-start: 3px;
84+
}
85+
8286
.item :global(svg) {
8387
inline-size: 1rem;
8488
block-size: 1rem;

Card.astro

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const {
3535
url = '#',
3636
img = 'https://fakeimg.pl/640x360',
3737
title = 'Default title',
38-
footer = 'Meta info like author, date, etc.',
38+
footer = '',
3939
class: className,
4040
tagName = 'h3',
4141
...rest
@@ -54,15 +54,9 @@ const Tag = tagName
5454
<a href={url}>{title}</a>
5555
</Tag>
5656
</div>
57-
<div class="meta">
58-
<slot name="meta" />
59-
</div>
60-
<p>
61-
<slot>Default description.</slot>
62-
</p>
63-
<small>
64-
{footer}
65-
</small>
57+
<div class="meta"><slot name="meta" /></div>
58+
<p class="description"><slot /></p>
59+
{footer && <small class="footer">{footer}</small>}
6660
</div>
6761
</article>
6862

@@ -98,6 +92,7 @@ const Tag = tagName
9892

9993
:where(.image) {
10094
block-size: 250px;
95+
overflow: clip;
10196
}
10297

10398
:where(.image img) {
@@ -148,18 +143,23 @@ const Tag = tagName
148143
.meta :global(span) {
149144
display: flex;
150145
flex-wrap: wrap;
146+
align-items: center;
151147
gap: 0.5rem;
152148
}
153149

154150
.meta:empty {
155151
display: none;
156152
}
157153

158-
p {
154+
.description {
159155
font-size: 1rem;
160156
}
161157

162-
small {
158+
.description:empty {
159+
display: none;
160+
}
161+
162+
.footer {
163163
margin-block-start: auto;
164164
padding-block-start: 1rem;
165165
}

Notification.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ const {
8787
color: light-dark(hsl(350 94% 19%), hsl(0 0% 100%));
8888
}
8989

90-
:where(.notification [data-icon]) {
90+
:where(.notification) :global([data-icon]) {
9191
flex-shrink: 0;
92-
inline-size: 2.5rem;
92+
inline-size: 1.5rem;
9393
block-size: auto;
9494
}
9595
</style>

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ import { Accordion, AccordionItem } from 'accessible-astro-components'
7878

7979
## Accessible Astro projects
8080

81-
- [Accessible Astro Starter](https://github.com/incluud/accessible-astro-starter): A fully accessible boilerplate for kickstarting Astro projects, with Tailwind CSS support.
82-
- [Accessible Astro Components](https://github.com/incluud/accessible-astro-components/): A library of reusable, accessible components designed for Astro, build in TypeScript.
83-
- [Accessible Astro Dashboard](https://github.com/incluud/accessible-astro-dashboard/): A user-friendly dashboard interface with a login screen, built with accessibility in mind.
84-
- [Accessible Astro Docs](https://github.com/incluud/accessible-astro-docs): Comprehensive documentation for all Accessible Astro projects, built with Astro's Starlight theme.
81+
- [Accessible Astro Starter](https://github.com/incluud/accessible-astro-starter): Fully accessible starter for kickstarting Astro projects, with Tailwind.
82+
- [Accessible Astro Components](https://github.com/incluud/accessible-astro-components/): Library of reusable, accessible components build for Astro.
83+
- [Accessible Astro Dashboard](https://github.com/incluud/accessible-astro-dashboard/): User-friendly dashboard interface with a login screen and widgets.
84+
- [Accessible Astro Docs](https://github.com/incluud/accessible-astro-docs): Comprehensive documentation for all Accessible Astro projects.
8585

8686
Check out our [roadmap](https://github.com/orgs/incluud/projects/4) to see what's coming next!
8787

TabsPanel.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ const { id, labelledby, selected = false, class: className } = Astro.props
4242
flex-direction: column;
4343
justify-content: center;
4444
align-items: flex-start;
45+
gap: 1rem;
4546
border: 2px solid;
4647
border-color: light-dark(hsl(0 0% 10%), hsl(0 0% 90%));
4748
border-end-start-radius: 0.5rem;

TabsTab.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const { id, controls, selected = false, class: className } = Astro.props
4949
border-radius: 0.5rem;
5050
background-color: transparent;
5151
padding-inline: 1rem;
52-
padding-block: 0.75rem;
52+
padding-block: 1.5rem;
5353
color: inherit;
5454
font-weight: 700;
5555
font-size: 1.125rem;

0 commit comments

Comments
 (0)