Skip to content

Commit

Permalink
fix: correct specificity of webkit appearance work around
Browse files Browse the repository at this point in the history
  • Loading branch information
Westbrook committed Jan 20, 2021
1 parent 00b3507 commit f0d06bf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/action-button/src/action-button.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ governing permissions and limitations under the License.
flex-direction: row;
}

:host([dir]) {
/* spectrum-css uses "-webkit-appearance: button" to workaround an
* iOS and Safari issue. However, it results in incorrect styling
* when applied in :host
*/
-webkit-appearance: none;
}

:host(.spectrum-Dropdown-trigger) #button {
text-align: left;
}
Expand Down
2 changes: 2 additions & 0 deletions packages/button/src/button-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ governing permissions and limitations under the License.
:host {
display: inline-flex;
vertical-align: top;
}

:host([dir]) {
/* spectrum-css uses "-webkit-appearance: button" to workaround an
* iOS and Safari issue. However, it results in incorrect styling
* when applied in :host
Expand Down

0 comments on commit f0d06bf

Please sign in to comment.