0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-04-14 23:51:49 -05:00

formatting on SVG changeset (#13542)

Co-authored-by: ascorbic <213306+ascorbic@users.noreply.github.com>
This commit is contained in:
Sarah Rainsberger 2025-04-02 08:42:02 -03:00 committed by GitHub
parent d7774207b1
commit 6254d35414
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,23 +12,23 @@ Removes some previously available prop, attribute, and configuration options fro
+ <Logo aria-label="My Company Logo" />
```
- Sprite mode has been temporarily removed while we consider a new implementation that addresses how this feature was being used in practice. This means that there are no longer multiple `mode` options, and all SVGs will be inline. All instances of `mode` must be removed from your project as you can no longer control a mode:
```diff
- <Logo mode="inline" />
+ <Logo />
```
```diff
- <Logo mode="inline" />
+ <Logo />
```
```diff
import { defineConfig } from 'astro'
```diff
import { defineConfig } from 'astro'
export default defineConfig({
experimental: {
- svg: {
- mode: 'sprite'
- },
+ svg: true
}
});
```
export default defineConfig({
experimental: {
- svg: {
- mode: 'sprite'
- },
+ svg: true
}
});
```
- The default `role` is no longer applied due to developer feedback. Please add the appropriate `role` on each component individually as needed:
```diff
- <Logo />