Browse Source

Revert "fix(ui): Consistent PanelHeader button sizing (#55164)"

This reverts commit f7de14bdee800222b3b8a3527772b5144689e29f.

Co-authored-by: evanpurkhiser <1421724+evanpurkhiser@users.noreply.github.com>
getsentry-bot 1 year ago
parent
commit
e3318c348a

+ 1 - 1
static/app/components/pluginConfig.tsx

@@ -132,7 +132,7 @@ class PluginConfig extends Component<Props, State> {
                 </Button>
               )}
               <Button
-                size="xs"
+                size="sm"
                 onClick={this.handleDisablePlugin}
                 disabled={!hasWriteAccess}
               >

+ 1 - 1
static/app/views/settings/components/teamSelect/teamSelectForMember.tsx

@@ -111,7 +111,7 @@ function TeamSelect({
 
   return (
     <Panel>
-      <TeamPanelHeader hasButtons>
+      <TeamPanelHeader>
         <div>{t('Team')}</div>
         <div />
         <div>

+ 6 - 1
static/app/views/settings/components/teamSelect/utils.tsx

@@ -100,7 +100,12 @@ export function DropdownAddTeam({
       alignMenu="right"
     >
       {({isOpen}) => (
-        <DropdownButton isOpen={isOpen} size="xs" disabled={disabled}>
+        <DropdownButton
+          aria-label={t('Add Team')}
+          isOpen={isOpen}
+          size="xs"
+          disabled={disabled}
+        >
           {t('Add Team')}
         </DropdownButton>
       )}

+ 0 - 1
static/app/views/settings/project/loaderScript.tsx

@@ -115,7 +115,6 @@ function LoaderItem({
         {tct('Client Key: [name]', {name: projectKey.name})}
 
         <LinkButton
-          size="xs"
           to={`/settings/${organization.slug}/projects/${project.slug}/keys/${projectKey.id}/`}
         >
           {t('View Key Details')}

+ 3 - 3
static/app/views/settings/project/projectKeys/list/keyRow.tsx

@@ -58,7 +58,7 @@ function KeyRow({
           )}
         </Title>
         <Controls>
-          <Button to={editUrl} size="xs">
+          <Button to={editUrl} size="sm">
             {t('Configure')}
           </Button>
           <Confirm
@@ -71,7 +71,7 @@ function KeyRow({
                 : t('Are you sure you want to enable this key?')
             }
           >
-            <Button size="xs">{data.isActive ? t('Disable') : t('Enable')}</Button>
+            <Button size="sm">{data.isActive ? t('Disable') : t('Enable')}</Button>
           </Confirm>
           <Confirm
             disabled={!hasWriteAccess}
@@ -82,7 +82,7 @@ function KeyRow({
               'Are you sure you want to remove this key? This action is irreversible.'
             )}
           >
-            <Button size="xs" icon={<IconDelete size="xs" />} aria-label={t('Delete')} />
+            <Button size="sm" icon={<IconDelete />} aria-label={t('Delete')} />
           </Confirm>
         </Controls>
       </PanelHeader>

+ 2 - 1
static/app/views/settings/projectDebugFiles/sources/customRepositories/index.tsx

@@ -235,7 +235,8 @@ function CustomRepositories({
                         <DropdownButton
                           isOpen={isOpen}
                           disabled={addRepositoryButtonDisabled}
-                          size="xs"
+                          size="sm"
+                          aria-label={t('Add Repository')}
                         >
                           {t('Add Repository')}
                         </DropdownButton>