Skip to content

Commit

Permalink
refactor(block): move hardcoded classes to CSS object (#5474)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfranco authored Oct 13, 2022
1 parent 7eaf051 commit d81065d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/block/block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ export class Block implements ConditionalSlotComponent, InteractiveComponent {
aria-expanded={toAriaBoolean(open)}
aria-labelledby={buttonId}
class={{
content: true,
"content--spaced": !this.disablePadding
[CSS.content]: true,
[CSS.contentSpaced]: !this.disablePadding
}}
hidden={!open}
id={regionId}
Expand Down
1 change: 1 addition & 0 deletions src/components/block/resources.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export const CSS = {
article: "article",
content: "content",
contentSpaced: "content--spaced",
headerContainer: "header-container",
icon: "icon",
statusIcon: "status-icon",
Expand Down

0 comments on commit d81065d

Please sign in to comment.