<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Emily Kondziola</title>
    <description>The latest articles on DEV Community by Emily Kondziola (@emilygracekz).</description>
    <link>https://dev.to/emilygracekz</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F474796%2F3195c46e-03d6-4430-bbb6-cfe06646d2a3.JPG</url>
      <title>DEV Community: Emily Kondziola</title>
      <link>https://dev.to/emilygracekz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/emilygracekz"/>
    <language>en</language>
    <item>
      <title>Why aren't my SVGs rendering in Safari?</title>
      <dc:creator>Emily Kondziola</dc:creator>
      <pubDate>Sat, 30 Oct 2021 00:34:57 +0000</pubDate>
      <link>https://dev.to/emilygracekz/why-arent-my-svgs-rendering-in-safari-372c</link>
      <guid>https://dev.to/emilygracekz/why-arent-my-svgs-rendering-in-safari-372c</guid>
      <description>&lt;p&gt;Recently for work I created a react component where I was passing in an SVG as a prop. Everything looked good in chrome, but when I tested in safari I realized my SVGs weren't showing up. &lt;/p&gt;

&lt;p&gt;After &lt;code&gt;console.log&lt;/code&gt;ing to make sure the prop was passed in correctly I eventually realized the SVG would only render when a &lt;code&gt;height&lt;/code&gt; attribute was specified in the component being passed in.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;Header&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Menu&lt;/span&gt; 
        &lt;span class="nx"&gt;links&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{[&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="na"&gt;itemName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;account settings&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;
          &lt;span class="na"&gt;SVG&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;AccountIcon&lt;/span&gt; &lt;span class="nx"&gt;height&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;20rem&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="p"&gt;]}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Another option is to define the &lt;code&gt;className&lt;/code&gt; of the SVG in the parent component and add styling in the child where it's being rendered.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;Header&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;Menu&lt;/span&gt; 
        &lt;span class="nx"&gt;links&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{[&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="na"&gt;itemName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;account settings&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;
          &lt;span class="na"&gt;SVG&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;AccountIcon&lt;/span&gt; &lt;span class="nx"&gt;className&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;svg-icon&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="o"&gt;/&amp;gt;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="p"&gt;]}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>webdev</category>
      <category>safari</category>
      <category>react</category>
    </item>
    <item>
      <title>My most used Bit commands</title>
      <dc:creator>Emily Kondziola</dc:creator>
      <pubDate>Sat, 15 May 2021 17:37:48 +0000</pubDate>
      <link>https://dev.to/emilygracekz/my-most-used-bit-commands-2ehl</link>
      <guid>https://dev.to/emilygracekz/my-most-used-bit-commands-2ehl</guid>
      <description>&lt;p&gt;Bit is a tool where you can upload components to the cloud ☁️ 🌈 so you can use them in other codebases, or import them to several files in one codebase. With Bit's built in version control uploading and editing components across several codebases and machines is easily manageable. &lt;/p&gt;

&lt;p&gt;Although I love Bit, I experienced a learning curve with the commands. As a result here's an explanation of my most used Bit commands as a library metaphor. &lt;/p&gt;

&lt;h1&gt;
  
  
  1: Import a component
&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;or check out a book&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;bit import seattle.seattle-public-library/harry-potter
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Ok! So you've made it to the library and you've decided to read &lt;em&gt;Harry Potter&lt;/em&gt;. Love that for you. You check it out and bring it home. This is essentially what you're doing when you "check out" a component from Bit's &lt;a href="https://harmony-docs.bit.dev/getting-started/remote-scope"&gt;remote scope&lt;/a&gt; and import it into your codebase. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Breaking down the command:&lt;/strong&gt; First you identify the &lt;a href="https://harmony-docs.bit.dev/getting-started/initializing-workspace"&gt;workspace&lt;/a&gt;, which is the city of Seattle. Next you identify the &lt;a href="https://harmony-docs.bit.dev/getting-started/creating-components#namespaces"&gt;namespace&lt;/a&gt;, or the building you're checking out the book from, the Seattle Public Library. Finally you identify the component to import, or the book to check out, &lt;em&gt;Harry Potter&lt;/em&gt;.&lt;/p&gt;

&lt;h1&gt;
  
  
  2: Save changes you've made to a component
&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;or write down that you read the book&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;bit status
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;bit tag -all
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You finished the book! You write down the title on a list that you're keeping to log how many books you've read. This solidifies in your memory that you've read the book. &lt;/p&gt;

&lt;p&gt;You only need to use these commands if you make a change to a component, or finish reading the book.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Breaking down the command:&lt;/strong&gt; &lt;code&gt;bit status&lt;/code&gt; checks to make sure there's no tracking issues, and &lt;code&gt;bit tag --all&lt;/code&gt; updates the component version. &lt;/p&gt;

&lt;h1&gt;
  
  
  3: Export your updated component
&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;or return your book after removing a page&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;bit export seattle.seattle-public-library --eject
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You're ready to return the book, but to remember how much you enjoyed the book you rip out a page to keep with you. The library doesn't like it but they let it slide. After returning the book the librarians make note of the changes you've made and put the new version of the book back on the shelf. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Breaking down the command:&lt;/em&gt;&lt;/strong&gt; To remove the component you've made changes to you only need to name the workspace and namespace. &lt;code&gt;export&lt;/code&gt; will publish the updated component in Bit, and &lt;code&gt;--eject&lt;/code&gt; will replace the component in your codebase with a node module. &lt;/p&gt;

&lt;h1&gt;
  
  
  4: Export your non-updated component
&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;or return your book with no changes&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;bit eject seattle.seattle-public-library/harry-potter
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In an alternate universe you didn't finish reading the book. You return it to the library without removing a page because you don't care to remember it. The librarians take note when they receive the book and do not update the version. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Breaking down the command:&lt;/em&gt;&lt;/strong&gt; Importing a component, not making changes, and exporting requires a slightly different command. As you know, &lt;code&gt;eject&lt;/code&gt; will replace the component with a node module and you don't need &lt;code&gt;export&lt;/code&gt; because you don't need to publish a new version of the component. &lt;/p&gt;

&lt;p&gt;You do, however, need to write the workspace, namespace and component name for Bit to know what to eject. &lt;/p&gt;

</description>
      <category>react</category>
      <category>reactnative</category>
      <category>node</category>
      <category>bitcomponentlibrary</category>
    </item>
  </channel>
</rss>
