Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
Expand Up @@ -5,14 +5,14 @@ export default {
parameters: { options: { selectedPanel: 'addon-controls' } },
};

const tableTitle = (title) => {
const tableTitle = (title: string) => {
return title
.split('-')
.map((str) => str[0].toUpperCase() + str.slice(1))
.join(' ');
};

const MixinTable = (title) => {
const MixinTable = (title: string) => {
const mixins = sassDoc.filter((value) => value.context.type === 'mixin');
return (
<div className="token-table-container" style={{ width: '100%' }}>
Expand Down Expand Up @@ -60,6 +60,7 @@ const MixinTable = (title) => {
</tr>
);
}
return null;
})}
</tbody>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ export default {
parameters: { options: { selectedPanel: 'addon-controls' } },
};

const tableTitle = (title) => {
const tableTitle = (title: string) => {
return title
.split('-')
.map((str) => str[0].toUpperCase() + str.slice(1))
.join(' ');
};

const MixinTable = (title) => {
const MixinTable = (title: string) => {
const mixins = sassDoc.filter((value) => value.context.type === 'mixin');
return html`
<div class="token-table-container" style="width: 100%">
Expand All @@ -28,9 +28,10 @@ const MixinTable = (title) => {
</tr>
</thead>
<tbody>
${mixins.map((mixin) => {
if (mixin.group.includes(title)) {
return html`
${mixins
.filter((mixin) => mixin.group.includes(title))
.map(
(mixin) => html`
<tr>
<td>
<code style="font-size: var(--pharos-font-size-small)"
Expand All @@ -50,9 +51,8 @@ const MixinTable = (title) => {
</div>
</td>
</tr>
`;
}
})}
`
)}
</tbody>
</table>
<br />
Expand Down
Loading
Loading