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

Text color #6513

Open
wants to merge 8 commits into
base: current
Choose a base branch
from
Open
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
8 changes: 5 additions & 3 deletions website/snippets/_enterprise-permissions-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Key:
| Environment credentials | W | - | W | - | R |
| Custom env. variables | W | - | W | - | R |
| Data platform configurations| W | - | W | - | R |
| Develop (IDE or CLI) | W | - | W | - | - |
| Develop (IDE or CLI) | W | - | W | - | - |
| Environments | W | - | W | - | R |
| Jobs | W | - | W | - | R |
| Metadata GraphQL API access | R | - | R | - | R |
Expand All @@ -65,10 +65,12 @@ Key:

The project roles enable you to work within the projects in various capacities. They primarily provide access to project-level permissions such as repos and the IDE or dbt Cloud CLI, but may also provide some account-level permissions.

<span class="text-green">Test</span>

Key:

* (W)rite &mdash; Create new or modify existing. Includes `send`, `create`, `delete`, `allocate`, `modify`, and `develop`.
* (R)ead &mdash; Can view but can not create or change any fields.
* (<span class="text-green">**W**</span>)rite &mdash; Create new or modify existing. Includes `send`, `create`, `delete`, `allocate`, `modify`, and `develop`.
* (<span class="text-red">**R**</span>)ead &mdash; Can view but can not create or change any fields.

#### Account permissions for project roles

Expand Down
10 changes: 10 additions & 0 deletions website/src/components/TextColor/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react';
import clsx from 'clsx';

const TextColor = ({ color, className, children }) => (
<span style={color ? { color } : {}} className={clsx(className)}>
{children}
</span>
);

export default TextColor;
12 changes: 11 additions & 1 deletion website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -2143,4 +2143,14 @@ table th {
[data-theme='dark'] table th {
color: #000000; /* Black text on darker background */
font-weight: bold;
}
}

.text-green {
color: #009902;
}
.text-red {
color: #ff171f;
}
.text-yellow {
color: #f5ea20;
}
3 changes: 3 additions & 0 deletions website/src/theme/MDXComponents/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ import Lifecycle from '@site/src/components/lifeCycle';
import DetailsToggle from '@site/src/components/detailsToggle';
import Expandable from '@site/src/components/expandable';
import ConfettiTrigger from '@site/src/components/confetti/';
import TextColor from '@site/src/components/TextColor';

const MDXComponents = {
Head,
Expand Down Expand Up @@ -97,5 +98,7 @@ const MDXComponents = {
Expandable: Expandable,
ConfettiTrigger: ConfettiTrigger,
SortableTable: SortableTable,
TextColor: TextColor,

};
export default MDXComponents;
Loading