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
6 changes: 4 additions & 2 deletions src/components/snippets/TsSupport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ export {};`;
<h3>{__('TypeScript support', 'mr-feature-flags')}</h3>
<p>
Create a file named{' '}
<span className="mr-feature-flags-slug">flags.d.ts</span> at the
root of the plugin / theme and add below declaration.
<span className="mr-feature-flags-filename">flags.d.ts</span> at
the entrypoint of TS code of plugin / theme ( usually{' '}
<span className="mr-feature-flags-slug">src</span> directory )
and add below declaration.
</p>
<Clipboard
text={tsSnippet}
Expand Down
8 changes: 7 additions & 1 deletion src/styles/settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,15 @@
margin-top: 20px;
}

.mr-feature-flags-slug {
.mr-feature-flags-filename {
background-color: #007cba;
border-radius: 6px;
padding: 3px;
color: #fff;
}

.mr-feature-flags-slug {
background-color: #d7d8d9;
border-radius: 6px;
padding: 2px;
}