Browse Source

feat(ui): Don't adjust text size for "link" buttons (#22713)

Evan Purkhiser 4 years ago
parent
commit
b54f5da110
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/sentry/static/sentry/app/components/button.tsx

+ 5 - 1
src/sentry/static/sentry/app/components/button.tsx

@@ -199,7 +199,11 @@ export default ButtonForwardRef;
 
 type StyledButtonProps = ButtonProps & {theme: Theme};
 
-const getFontSize = ({size, theme}: StyledButtonProps) => {
+const getFontSize = ({size, priority, theme}: StyledButtonProps) => {
+  if (priority === 'link') {
+    return 'inherit';
+  }
+
   switch (size) {
     case 'xsmall':
     case 'small':