Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: removed SVGs and update fill style in accordion #17527

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "removed SVGs to use the default",
"packageName": "@fluentui/web-components",
"email": "[email protected]",
"dependentChangeType": "patch"
}
301 changes: 2 additions & 299 deletions packages/web-components/src/accordion/fixtures/base.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<fluent-design-system-provider use-defaults>
<style>
.icon {
stroke: var(--accent-fill-rest);
fluent-accordion-item::part(icon) {
fill: var(--accent-fill-rest);
khamudom marked this conversation as resolved.
Show resolved Hide resolved
}

fluent-accordion-item.disabled::part(button) {
Expand All @@ -19,113 +19,14 @@ <h4>Default</h4>
<button>1</button>
</div>
<span slot="heading">Panel one</span>
<svg
slot="collapsed-icon"
class="icon"
width="18"
height="18"
viewBox="0 0 18 18"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path d="M9 5.44446V12.5556" stroke-linecap="round" stroke-linejoin="round" />
<path d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round" />
</svg>
<svg
slot="expanded-icon"
class="icon"
width="18"
height="18"
viewBox="0 0 18 18"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round" />
</svg>
Panel one content
</fluent-accordion-item>
<fluent-accordion-item>
<span slot="heading">Panel two</span>
<svg
slot="collapsed-icon"
class="icon"
width="18"
height="18"
viewBox="0 0 18 18"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path d="M9 5.44446V12.5556" stroke-linecap="round" stroke-linejoin="round" />
<path d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round" />
</svg>
<svg
slot="expanded-icon"
class="icon"
width="18"
height="18"
viewBox="0 0 18 18"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round" />
</svg>
Panel two content
</fluent-accordion-item>
<fluent-accordion-item expanded>
<span slot="heading">Panel three</span>
<svg
slot="collapsed-icon"
class="icon"
width="18"
height="18"
viewBox="0 0 18 18"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path d="M9 5.44446V12.5556" stroke-linecap="round" stroke-linejoin="round" />
<path d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round" />
</svg>
<svg
slot="expanded-icon"
class="icon"
width="18"
height="18"
viewBox="0 0 18 18"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round" />
</svg>
Panel three content
</fluent-accordion-item>
</fluent-accordion>
Expand All @@ -139,113 +40,14 @@ <h4>Single expand</h4>
<button>1</button>
</div>
<span slot="heading">Panel one</span>
<svg
slot="collapsed-icon"
class="icon"
width="18"
height="18"
viewBox="0 0 18 18"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path d="M9 5.44446V12.5556" stroke-linecap="round" stroke-linejoin="round" />
<path d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round" />
</svg>
<svg
slot="expanded-icon"
class="icon"
width="18"
height="18"
viewBox="0 0 18 18"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round" />
</svg>
Panel one content
</fluent-accordion-item>
<fluent-accordion-item class="disabled">
<span slot="heading">Panel Two</span>
<svg
slot="collapsed-icon"
class="icon"
width="18"
height="18"
viewBox="0 0 18 18"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path d="M9 5.44446V12.5556" stroke-linecap="round" stroke-linejoin="round" />
<path d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round" />
</svg>
<svg
slot="expanded-icon"
class="icon"
width="18"
height="18"
viewBox="0 0 18 18"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round" />
</svg>
Panel two content
</fluent-accordion-item>
<fluent-accordion-item>
<span slot="heading">Panel three</span>
<svg
slot="collapsed-icon"
class="icon"
width="18"
height="18"
viewBox="0 0 18 18"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path d="M9 5.44446V12.5556" stroke-linecap="round" stroke-linejoin="round" />
<path d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round" />
</svg>
<svg
slot="expanded-icon"
class="icon"
width="18"
height="18"
viewBox="0 0 18 18"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round" />
</svg>
Panel three content
</fluent-accordion-item>
</fluent-accordion>
Expand All @@ -259,39 +61,6 @@ <h4>With disabled item</h4>
<button>1</button>
</div>
<span slot="heading">Panel two</span>
<svg
slot="collapsed-icon"
class="icon"
width="18"
height="18"
viewBox="0 0 18 18"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path d="M9 5.44446V12.5556" stroke-linecap="round" stroke-linejoin="round" />
<path d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round" />
</svg>
<svg
slot="expanded-icon"
class="icon"
width="18"
height="18"
viewBox="0 0 18 18"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round" />
</svg>
Panel one content
</fluent-accordion-item>
<fluent-accordion-item class="disabled">
Expand All @@ -302,39 +71,6 @@ <h4>With disabled item</h4>
<button>1</button>
</div>
<span slot="heading">Disabled</span>
<svg
slot="collapsed-icon"
class="icon"
width="18"
height="18"
viewBox="0 0 18 18"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path d="M9 5.44446V12.5556" stroke-linecap="round" stroke-linejoin="round" />
<path d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round" />
</svg>
<svg
slot="expanded-icon"
class="icon"
width="18"
height="18"
viewBox="0 0 18 18"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round" />
</svg>
Disabled content
</fluent-accordion-item>
<fluent-accordion-item expanded>
Expand All @@ -345,39 +81,6 @@ <h4>With disabled item</h4>
<button>1</button>
</div>
<span slot="heading">Panel three</span>
<svg
slot="collapsed-icon"
class="icon"
width="18"
height="18"
viewBox="0 0 18 18"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path d="M9 5.44446V12.5556" stroke-linecap="round" stroke-linejoin="round" />
<path d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round" />
</svg>
<svg
slot="expanded-icon"
class="icon"
width="18"
height="18"
viewBox="0 0 18 18"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round" />
</svg>
Panel three content
</fluent-accordion-item>
</fluent-accordion>
Expand Down