Skip to content

Commit

Permalink
feat(accordion): update spectrum css input
Browse files Browse the repository at this point in the history
  • Loading branch information
Westbrook Johnson authored and Westbrook committed Jan 6, 2021
1 parent 62a5065 commit d94e059
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/accordion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@spectrum-css/accordion": "^3.0.0-beta.4"
"@spectrum-css/accordion": "^3.0.0-beta.5"
},
"dependencies": {
"@spectrum-web-components/base": "^0.1.3",
Expand Down
14 changes: 9 additions & 5 deletions packages/accordion/src/AccordionItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import {
} from '@spectrum-web-components/base';
import { Focusable } from '@spectrum-web-components/shared/src/focusable.js';
import '@spectrum-web-components/icon/sp-icon.js';
import { ChevronRightMediumIcon } from '@spectrum-web-components/icons-ui';
import chevronRightMediumIconStyles from '@spectrum-web-components/icon/src/spectrum-icon-chevron-right-medium.css.js';
import { Chevron100Icon } from '@spectrum-web-components/icons-ui';
import chevronIconStyles from '@spectrum-web-components/icon/src/spectrum-icon-chevron.css.js';

import styles from './accordion-item.css.js';

Expand All @@ -31,7 +31,7 @@ import styles from './accordion-item.css.js';
*/
export class AccordionItem extends Focusable {
public static get styles(): CSSResultArray {
return [styles, chevronRightMediumIconStyles];
return [styles, chevronIconStyles];
}

@property({ type: Boolean, reflect: true })
Expand Down Expand Up @@ -97,8 +97,12 @@ export class AccordionItem extends Focusable {
>
${this.label}
</button>
<sp-icon id="indicator" size="xs" class="chevron-right-medium">
${ChevronRightMediumIcon({ hidden: true })}
<sp-icon
id="indicator"
size="xs"
class="spectrum-UIIcon-ChevronRight100"
>
${Chevron100Icon()}
</sp-icon>
</h3>
<div id="content" role="region" aria-labelledby="header">
Expand Down

0 comments on commit d94e059

Please sign in to comment.