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

Fix: Add mgt link colors #2240

Merged
merged 2 commits into from
Nov 22, 2022
Merged
Changes from 1 commit
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
4 changes: 4 additions & 0 deletions src/app/views/query-response/graph-toolkit/GraphToolkit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ import { lookupToolkitUrl } from '../../../utils/graph-toolkit-lookup';
import { translateMessage } from '../../../utils/translate-messages';
import { queryResponseStyles } from '../queryResponse.styles';
import { useAppSelector } from '../../../../store';
import { classNames } from '../../classnames';

const GraphToolkit = () => {
const { sampleQuery } = useAppSelector((state) => state);
const { toolkitUrl, exampleUrl } = lookupToolkitUrl(sampleQuery);

const currentTheme: ITheme = getTheme();
const textStyle = queryResponseStyles(currentTheme).queryResponseText.root as IStyle;
const linkStyle = queryResponseStyles(currentTheme).link as IStyle

if (toolkitUrl && exampleUrl) {
return (
Expand All @@ -27,6 +29,7 @@ const GraphToolkit = () => {
onClick={(e) =>
telemetry.trackLinkClickEvent((e.currentTarget as HTMLAnchorElement).href,
componentNames.GRAPH_TOOLKIT_PLAYGROUND_LINK)}
styles={{root: linkStyle}}
>
<FormattedMessage id='graph toolkit playground' />
</Link>
Expand All @@ -46,6 +49,7 @@ const GraphToolkit = () => {
href='https://aka.ms/mgt'
rel='noopener noreferrer'
target='_blank'
styles={{root: linkStyle}}
>
<FormattedMessage id='Learn more about the Microsoft Graph Toolkit' />
.
Expand Down