Browse Source

ref(nav-tabs): Use 14px font size (#32857)

Vu Luong 2 years ago
parent
commit
aeb601dc1b

+ 6 - 2
static/app/components/navTabs.tsx

@@ -1,4 +1,4 @@
-import * as React from 'react';
+import styled from '@emotion/styled';
 import classnames from 'classnames';
 
 interface NavProps extends React.HTMLAttributes<HTMLUListElement> {
@@ -10,7 +10,11 @@ function NavTabs({underlined, className, ...tabProps}: NavProps) {
     'border-bottom': underlined,
   });
 
-  return <ul className={mergedClassName} {...tabProps} />;
+  return <Wrap className={mergedClassName} {...tabProps} />;
 }
 
 export default NavTabs;
+
+const Wrap = styled('ul')`
+  font-size: ${p => p.theme.fontSizeMedium};
+`;

+ 0 - 2
static/app/views/issueList/savedSearchTab.tsx

@@ -134,8 +134,6 @@ const StyledDropdownLink = styled(DropdownLink)<{isActive?: boolean}>`
   position: relative;
   display: block;
   padding: ${space(1)} 0;
-  /* Important to override a media query from .nav-tabs */
-  font-size: ${p => p.theme.fontSizeLarge} !important;
   text-align: center;
   text-transform: capitalize;
   /* TODO(scttcper): Replace hex color when nav-tabs is replaced */