diff --git a/.github/workflows/get_figma_images.yml b/.github/workflows/get_figma_images.yml index 5b14c013f..5de113338 100644 --- a/.github/workflows/get_figma_images.yml +++ b/.github/workflows/get_figma_images.yml @@ -42,3 +42,7 @@ jobs: - uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: github-actions[bot] Update figma images + - uses: actions-ecosystem/action-remove-labels@v1 + if: always() + with: + labels: 'update figma images' diff --git a/content/components/banner.mdx b/content/components/banner.mdx index 8397df30a..76e38eac8 100644 --- a/content/components/banner.mdx +++ b/content/components/banner.mdx @@ -38,10 +38,10 @@ Don't show more than one banner at a time. For more information, see this articl ## Anatomy -Anatomy of a banner, including the message, title, icon, dismiss button, primary, and secondary action ## Options diff --git a/src/components/figma-image.tsx b/src/components/figma-image.tsx index 2233bdf69..9e2bd1c25 100644 --- a/src/components/figma-image.tsx +++ b/src/components/figma-image.tsx @@ -1,12 +1,20 @@ import React from 'react'; import {parseFigmaNodeUrl} from '@primer/figma-images/src/utils'; import { Link } from '@primer/react'; +import { fontSizes } from '@primer/react/lib-esm/theme-preval'; type FigmaImageProps = React.ImgHTMLAttributes & { src: string caption?: string } +const cssStyles = { + width: "100%", + "& img": { + width: '100%' + } +} + const FigmaImageDir = '/images/figma'; export const FigmaImage: React.FC = ({src, caption, ...props}) => { @@ -16,8 +24,8 @@ export const FigmaImage: React.FC = ({src, caption, ...props}) const {nodeId, fileId} = parseFigmaNodeUrl(src); const imagePath = `${FigmaImageDir}/${fileId}-${nodeId}.png` // return image component - return (
+ return (
-
{caption}Edit Image
+
{caption}Edit in Figma
) } \ No newline at end of file