<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Megha Arora on Medium]]></title>
        <description><![CDATA[Stories by Megha Arora on Medium]]></description>
        <link>https://medium.com/@meghaarora_95133?source=rss-89ca13302670------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*DSaUL_huewOy7xUrxI-rSQ.jpeg</url>
            <title>Stories by Megha Arora on Medium</title>
            <link>https://medium.com/@meghaarora_95133?source=rss-89ca13302670------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 12:12:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@meghaarora_95133/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Email Sender using Razor parser for .Net core 3.1 with Razor Light pre-release 2.0.0-beta]]></title>
            <link>https://medium.com/@meghaarora_95133/email-sender-using-razor-parser-for-net-core-3-1-with-razor-light-pre-release-2-0-0-beta-25b6d6c90328?source=rss-89ca13302670------2</link>
            <guid isPermaLink="false">https://medium.com/p/25b6d6c90328</guid>
            <category><![CDATA[razor]]></category>
            <category><![CDATA[razorlight]]></category>
            <category><![CDATA[email-sender]]></category>
            <category><![CDATA[sendgrid]]></category>
            <category><![CDATA[net-core-3]]></category>
            <dc:creator><![CDATA[Megha Arora]]></dc:creator>
            <pubDate>Fri, 01 May 2020 13:32:00 GMT</pubDate>
            <atom:updated>2020-05-01T14:00:19.615Z</atom:updated>
            <content:encoded><![CDATA[<h3>Email Sender using Razor parser for .Net core 3.1 with Razor Light 2.0.0-beta or Razor Light 1.0.0</h3><p>Recently, we were working on an Email sender, for which we decided to use Razor parser and Send Grid.</p><p><strong>As we all know that Razor parsing without MVC can be a little frightening, I would like to write about how we used Razorlight v2.0.0-beta7 to parse our templates (partials) beautifully with the given models and send as Emails.</strong></p><h3><strong><em>Furthermore, I have also made a sample project and checked in to my GitHub repo here for quick reference.</em></strong></h3><p>However, still, I would like to give some important pointers which could be really helpful while setting up the <strong>Razorlight</strong> parser.</p><ol><li>Make sure to download the correct version that is the prerelease v2.0.00-beta7</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*3f-ZyMQnwTk5Wu-iSOsRgg.png" /></figure><p>2. Add the assembly containing the partials while creating RazorLightEngine in the Razor Parser Service, you can use UseEmbeddedResourcesProject or UseFileSystemProject</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*m9rJTc6ADVCRhq7I3171yg.png" /><figcaption>Add assembly path for creating razor engine</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kJAUrGjbqLEZ2cq3XClWBQ.png" /><figcaption>Add assembly path for creating razor engine with another way</figcaption></figure><h3><strong>For using Razor Light 1.0.0 stable version, we could add the templates to the startup project and add the following to the csproj file of startup project</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p4pw4RDXCE_ZS8Ad8PkqeQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/1*K4V1phlMG-6752gmgYnj3g.png" /></figure><p>3. Give the template path correctly after creation of RazorLightEngine. <strong>For instance, the templates are under the Templates folder in Email.Core.Parser project and has an extension cshtml.</strong></p><p><strong>The model can be the object you send to your template. :)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*uXC2Bjdpx_j83HgoDHLweQ.png" /></figure><p>4. Last but not the least, make sure to include the templates folder and the recursive subfolders/files in the csproj file of the project used as the assembly above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*bGKQH8EMic0IRWy4JSjgQQ.png" /></figure><p>And yay, all set, use the SendGrid code to send out emails after. Snippet below</p><figure><img alt="SendGrid email sender reference" src="https://cdn-images-1.medium.com/max/705/1*wBYLr_b-RJHh2N_tckR-jA.png" /></figure><figure><img alt="send grid code continued" src="https://cdn-images-1.medium.com/max/941/1*H5lOWxUy6E76cVILrgfAhg.png" /></figure><p>Special shoutout to <a href="https://medium.com/@jabins3">Jabin </a>for helping me with this :)</p><p>Happy coding .. \m/</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=25b6d6c90328" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Office Fluent UI React (Office Fabric UI React) web controls styling]]></title>
            <link>https://medium.com/@meghaarora_95133/office-fluent-ui-react-office-fabric-ui-react-web-controls-styling-9b4c6d97a30?source=rss-89ca13302670------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b4c6d97a30</guid>
            <category><![CDATA[responsive-design]]></category>
            <category><![CDATA[accessibility]]></category>
            <category><![CDATA[styling-in-react]]></category>
            <category><![CDATA[fluent]]></category>
            <category><![CDATA[office-ui-fabric]]></category>
            <dc:creator><![CDATA[Megha Arora]]></dc:creator>
            <pubDate>Fri, 01 May 2020 07:52:45 GMT</pubDate>
            <atom:updated>2020-05-01T08:28:44.751Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Office Fluent UI React (Office Fabric UI React) web controls styling</strong></p><p>We all love using the Office Fluent UI Components for our React websites/webpages and especially when it offers a plethora of reusable and easily pluggable components for free.</p><p>The <a href="https://developer.microsoft.com/en-us/fluentui#/controls/web">official documentation</a> gives a wide variety of examples already. However, It has always been a little tricky to style the FluentUI components without digging deep into styles provided by Fluent UI React and thus I thought of sharing some examples wherein we could style our web controls such as Buttons and SearchBox.</p><ol><li>Styling Fluent UI React Button using IButtonStyles</li></ol><blockquote>a. Using IButtonStyles for styling Fluent UI React buttons as per user actions</blockquote><blockquote>Styling is easy by selecting such predefined IStyle for common actions on buttons. :)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oxFs-eBCqC-hTJdcaaFHDQ.png" /></figure><blockquote>For Example :</blockquote><blockquote><em>const sampleButtonStyles: IButtonStyles = {</em></blockquote><blockquote><em>root: {// Styling for default button look and feel<br> backgroundColor: ‘white’,<br> color: ‘black’<br> },<br> rootHovered: {<br>// Styling for hovered button<br> borderColor: theme.brandTransparent,<br> outline: `1px solid purple`<br> },<br> rootChecked: {// Styling changes when button is checked<br>borderColor: transparent,<br> outline: ‘1px solid purple’<br> },<br> rootPressed: {<br> // Styling changes when button is pressed/clicked<br> borderRight: ‘7px solid’,<br> borderColor: ‘purple’,<br> },<br> rootCheckedHovered: {// Styling changes when button is checked and hovered<br> backgroundColor: theme.brandWhite,<br> },<br> rootFocused: {<br>// Styling changes when button is focussed<br> borderColor: ‘transparent’,<br> outline: `1px solid ${theme.brandPurple}`<br> }};</em></blockquote><blockquote><em>&lt;</em><strong><em>PrimaryButton </em></strong><em>styles={sampleButtonStyles} &gt;</em></blockquote><blockquote>a. Using IButtonStyles for styling Fluent UI for different screen sizes and high contrast modes.</blockquote><p>Styling for responsiveness and high contrast modes is the heart of building more usable, robust, and accessible websites. And fear no more, selectors in IButtonStyles come to rescue.</p><blockquote>For Example :</blockquote><p><em>const sampleButtonStyles: IButtonStyles = {</em></p><p><em>root: {<br> backgroundColor: ‘white’,<br> color: ‘black’</em></p><p>selectors: {</p><p>// For Media Screen Queries<br> <strong>‘</strong><a href="http://twitter.com/media"><strong>@media</strong></a><strong>(max-width: 600px)’: {</strong><br> background: ‘green’,<br> },<br> ‘<a href="http://twitter.com/supports">@supports</a>(display: grid)’: {<br> display: ‘grid’,<br> },</p><p>// For high contrast modes</p><p><strong>[HighContrastSelector]</strong>: {<br> borderColor: ‘WindowText’<br> }<br> }<em><br> }</em></p><p>}</p><p>2. Styling Fluent UI React search box using ISearchBoxStyles.</p><blockquote>ISearchBoxStyles could be used to easily style the search box web control and we can also use selectors to define styling for media queries, high contrast, even use selectors such as :hover: , :after: etc and can play with any combination and nesting of these.</blockquote><blockquote>For Example:</blockquote><blockquote>const searchBoxStyles: ISearchBoxStyles = {</blockquote><blockquote>root: {<br> width: 380,<br> border: ‘4px solid purple’,<br> selectors: {<br><strong> [HighContrastSelector]: {</strong><br> borderColor: ‘WindowText’<br> },<br><strong> ‘:hover’: {<br> borderColor: `${theme.brandDeepSkyBlue}`,<br> selectors: {<br> [HighContrastSelector]: {<br> borderColor: ‘Highlight’<br> }</strong><br>}<br> }<br> }<br> }<br>};</blockquote><blockquote>&lt;<strong>SearchBox </strong><em>ariaLabel</em>=‘search box’ <em>placeholder</em>=‘search something’; <em>styles= </em>{searchBoxStyles} /&gt;</blockquote><p>We can also similarly style other Fluent UI Web controls. Just need to check which type of IStyle properties it uses. We will try to see more examples of Fluent UI web controls in further articles.</p><p>Till then happy styling :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b4c6d97a30" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>