瀏覽代碼

Fix incorrect font in Chrome on the Dashboard (#2887)

* Fix incorrect font in Chrome on the Dashboard

* Revert CSS; use .uppy-u-reset & .uppy-c-btn classes instead

* Cleanup
Alexander Zaytsev 3 年之前
父節點
當前提交
961a5d653e
共有 2 個文件被更改,包括 2 次插入5 次删除
  1. 2 2
      packages/@uppy/dashboard/src/components/AddFiles.js
  2. 0 3
      packages/@uppy/dashboard/src/style.scss

+ 2 - 2
packages/@uppy/dashboard/src/components/AddFiles.js

@@ -77,7 +77,7 @@ class AddFiles extends Component {
       >
         <button
           type="button"
-          className="uppy-DashboardTab-btn"
+          className="uppy-u-reset uppy-c-btn uppy-DashboardTab-btn"
           role="tab"
           tabIndex={0}
           data-uppy-super-focusable
@@ -185,7 +185,7 @@ class AddFiles extends Component {
       >
         <button
           type="button"
-          className="uppy-DashboardTab-btn"
+          className="uppy-u-reset uppy-c-btn uppy-DashboardTab-btn"
           role="tab"
           tabIndex={0}
           aria-controls={`uppy-DashboardContent-panel--${acquirer.id}`}

+ 0 - 3
packages/@uppy/dashboard/src/style.scss

@@ -391,7 +391,6 @@
   width: 100%;
   height: 100%;
   cursor: pointer;
-  border: 0;
   background-color: transparent;
   -webkit-appearance: none;
   appearance: none;
@@ -400,8 +399,6 @@
   flex-direction: row;
   align-items: center;
   padding: 12px 15px;
-  line-height: 1;
-  text-align: center;
 
   .uppy-size--md & {
     width: 86px;