Unique behavior and design specifically tailored for Safari viewing

Hey there! So I've been working on a Gatsby application and ran into an issue with Font Awesome Icons when viewed in Safari. The icons seem to lose their shape and proportions compared to how they appear in Google Chrome.

Safari

https://i.sstatic.net/VGMjz.png

Google Chrome

https://i.sstatic.net/oPrwa.png

React

import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faDatabase } from '@fortawesome/free-solid-svg-icons'

<span className="awesome-parent">
  <FontAwesomeIcon 
    className="major db-style awesome-icon" 
    icon={faDatabase}
  />
</span>

Styling

.awesome-parent {
  display: inline-flex;
  border: solid 1px;
  border-radius: 100%;
  margin: 0 0 2em;
  padding: 0.5em;
  border-color: lightgray;


  .awesome-icon {
    border: solid 1px;
    border-radius: 100%;
    height: 10em;
    width: 10em;
    padding: 2em;
  }

  .db-style {
    color: _palette(db-blue);
    border-color: lightgray;
  }

}

Could anyone help me figure out what I might have done wrong? I have other icons styled similarly but with different colors, and they display correctly.

I'm still troubleshooting this issue, so if you'd like to take a look at the deployed website for debugging purposes:

Thanks!

Answer №1

Kindly replace the border-radius: 100%; with a pixel value of border-radius: 25px;. Hopefully, this adjustment will be beneficial to you. Thank you

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Checkbox failing to trigger

Check out my code snippet here: http://jsfiddle.net/raficsaza/mgukxouj/ I'm facing an issue with the checkbox in this code. It seems to be stuck at a false value and I can't get it to change. Is there a way to work with the "input" tag instead o ...

The mixin animation received 2 arguments, even though it only accepts 1

Below is the sass code snippet, @include animation(swayb $speed ease infinite 3s, reset 1s ease forwards 5s); When I try watching using compass watch on my Ubuntu machine, it triggers an error, (Line 2500 of _includes/_common.scss: Mixin animation tak ...

Having trouble getting the hover effect to work when selecting a different section of the SVG

In my SVG checkbox design, I have a circle element surrounding a polyline element (which acts as the checkmark). The boundaries of the icon extend beyond the circle, causing hover styles to trigger even when hovering outside the circle. I want to change st ...

The color of the left arrow on the tooltip cannot be altered

Currently, I am using a tooltip that is positioned on the right side: <i class="fas fa-question-circle text-blue" data-toggle="tooltip" data-placement="right" title="hello" ></i> I have attempted to modify the color of the too ...

Ways to trigger rendering when the global variable value is updated?

#Code Block 1: let ticketEnabled = false; export default class SupportTicketMain extends Component { constructor () { super(); } render () { let expIcon = <DownIcon/>; if (this.state.ticketDetailExpand) { expIcon = <UpIcon ...

Tips for building pages in React

I am currently working on a React app that is designed to be very simple. Each page will contain minimal data, and I am trying to find the easiest method for switching between these pages with as little complexity as possible. Below is the code I have so ...

Having trouble resolving a 400 Error when executing a GraphQL mutation that returns a Post. Any tips on how to

My current challenge involves using an input form in React to execute a graphql mutation and add a team to the database, ultimately displaying a team card on my React FrontEnd. Although I can manually perform the mutation using GraphQL playground, I am str ...

What is the best way to incorporate dynamically added scripts into a document using JavaScript

Is there a way to dynamically add a script in document.js? In document.js, there is no access to props. How can a script be conditionally added? import { Html, Head, Main, NextScript } from 'next/document' export default function Document() { ...

Issues with utilizing React Router and Hooks

Recent Update: I have made some changes to my code by converting it to a functional component. However, it seems like nothing is being returned from the API or there may be an issue with how I am mounting the component. The error message "TypeError: Cannot ...

Unable to change the alignment to the left in the CSS styling

My table has th elements with a text-align: left property. I tried to override this with text-align: center in my CSS, but it's not working. Can anyone suggest a reason why? Here is my table: <table class="days_table" align="center"> <thea ...

The items are misaligned in a horizontal position

The 4 divs are styled with a width of 23% and displayed using inline-block. They have a fixed height of 220px and no margin applied. However, the issue arises as they are not aligning horizontally Despite attempting to adjust the height and width paramete ...

Guide on accessing the content inside a <div> element

This is what I currently have: <div id='staff' >Staff</div> My goal is to add an asterisk after the 'Staff' text to show that the associated part is necessary. Is there a way to use CSS3 and polymer-dart to target the &ap ...

Navigation bar options across various web pages

In my Next JS project, I encountered an issue with the Navbar component. By default, the Navbar elements change color from white to black when scrolling below 950px. However, I needed to make an exception for another specific page ("/lodge/page.tsx"). On t ...

A simple guide on integrating personalized color palettes into Material-UI Theme

One enhancement I'd like to make in my theme is the inclusion of a custom color called warn import React from 'react' import { MuiThemeProvider } from '@material-ui/core/styles' import createMuiTheme from '@material-ui/core/s ...

What could be causing these cards to not show up correctly?

I am currently incorporating Angular Material's cards in a material grid. Here is the code snippet that I am working with: http://codepen.io/anon/pen/YWwwvZ The issue at hand is that the top row of images extends off the screen at the top, and the b ...

Establish the state of the hook in one go

I'm confused as to why every time I run this code: interface Xxx { str: string } const [xxx, setXxx] = useState<Xxx>(); function getData() { setXxx({ str: "aaa" }); } getData() the hook is being set co ...

What is the best way to incorporate a custom breakpoint into the sx prop?

Currently, I am working with Material-UI version 4 and I am interested in incorporating a custom breakpoint to the sx prop. Can someone guide me on how to achieve this? <Box sx={{ ...style, width: 1000 }} > <button onClick={() => handle ...

Is it possible to exclude a certain prop from a styled component that has emotions?

Within my code, there exists a component called BoxWithAs, which is defined as follows: const BoxWithAs = styled.div( { WebkitFontSmoothing: 'antialiased', MozOsxFontSmoothing: 'grayscale' // And more … } ); Everythin ...

Implementing the useFormik hook for user authentication

Is anyone familiar with the useFormik hook? I am trying to validate a username and password on the server using the handleLogin(username, password) method. This is the code snippet I am currently working with: const LoginForm = withFormik({ mapPropsToV ...

Tips on utilizing useStyle with ReactJS Material UI?

Is there a way to utilize a custom CSS file in the useStyle function of Material UI? I have created a separate useStyle file and would like to incorporate its styles. Can someone explain how this can be accomplished? input[type="checkbox"], inp ...