<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Now-Modal - change size --- Now Experience in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/now-modal-change-size-now-experience/m-p/1349823#M6749</link>
    <description>&lt;P&gt;I have use a now-modal in my component but I want it bigger than "lg" how can I do that?&lt;/P&gt;
&lt;P&gt;I assume I need to use :host in CSS. I have tried this in the component styles.scss:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-css"&gt;&lt;CODE&gt;:host(now-modal) {
  max-width: 98%;
  width: 80%;
}&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 27 Jun 2020 20:42:34 GMT</pubDate>
    <dc:creator>Tommy Jensen</dc:creator>
    <dc:date>2020-06-27T20:42:34Z</dc:date>
    <item>
      <title>Now-Modal - change size --- Now Experience</title>
      <link>https://www.servicenow.com/community/developer-forum/now-modal-change-size-now-experience/m-p/1349823#M6749</link>
      <description>&lt;P&gt;I have use a now-modal in my component but I want it bigger than "lg" how can I do that?&lt;/P&gt;
&lt;P&gt;I assume I need to use :host in CSS. I have tried this in the component styles.scss:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-css"&gt;&lt;CODE&gt;:host(now-modal) {
  max-width: 98%;
  width: 80%;
}&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Jun 2020 20:42:34 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/now-modal-change-size-now-experience/m-p/1349823#M6749</guid>
      <dc:creator>Tommy Jensen</dc:creator>
      <dc:date>2020-06-27T20:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Now-Modal - change size --- Now Experience</title>
      <link>https://www.servicenow.com/community/developer-forum/now-modal-change-size-now-experience/m-p/1349824#M6750</link>
      <description>&lt;P&gt;Hi &lt;SN-MENTION class="sn-mention" table="live_profile" sysid="45039ee1db1c1fc09c9ffb651f961960"&gt;@Tommy Jensen&lt;/SN-MENTION&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Though I haven't used the Now Experience UI yet, but I think the now-modal uses the bootstrap modal under the hood, and if that's the case, the rendered HTML page would probably have modal-sm, modal-lg etc. classes, depending on the modal size that you've defined (you can check that by inspecting the rendered page).&lt;/P&gt;
&lt;P&gt;I'd configure the now-modal for a "lg" size, and in the css file, i'd try using:&lt;/P&gt;
&lt;PRE&gt;@media screen and (min-width: 950px) {&lt;BR /&gt;&amp;nbsp; .modal-lg {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; width: 800px; /* Set it to your desired width for the large modal */&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt; }&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Rishabh Jha&lt;/P&gt;
&lt;P&gt;Aavenir (&lt;A href="http://www.aavenir.com/" rel="nofollow"&gt;http://www.aavenir.com/&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2020 06:48:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/now-modal-change-size-now-experience/m-p/1349824#M6750</guid>
      <dc:creator>Rishabh Jha</dc:creator>
      <dc:date>2020-06-28T06:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Now-Modal - change size --- Now Experience</title>
      <link>https://www.servicenow.com/community/developer-forum/now-modal-change-size-now-experience/m-p/1349825#M6751</link>
      <description>&lt;P&gt;I already tried this and it does not work.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2020 09:58:34 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/now-modal-change-size-now-experience/m-p/1349825#M6751</guid>
      <dc:creator>Tommy Jensen</dc:creator>
      <dc:date>2020-06-28T09:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Now-Modal - change size --- Now Experience</title>
      <link>https://www.servicenow.com/community/developer-forum/now-modal-change-size-now-experience/m-p/1349826#M6752</link>
      <description>&lt;P&gt;So I almost got it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Turns out that if the modal property "size" is set to a size not supported! (ie NOT sm, md or lg) like xl then the width gets set to 100%.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thats not exactly what I want as that does not look so good.&lt;/P&gt;
&lt;P&gt;So&amp;nbsp;I tried adding my own class to the modal component&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;className="article-modal-xl"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and class is defined in styles.scss&lt;/P&gt;
&lt;PRE class="language-css"&gt;&lt;CODE&gt;.article-modal-xl {
  max-width: 90%;
  width: 90%;
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When running and I inspect I see my new class on the modal but it has not effect ??&lt;BR /&gt;&lt;BR /&gt;It looks like this (and modal is 100% wide)&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/141506i3E8AB4F63DD99DA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2020 10:53:57 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/now-modal-change-size-now-experience/m-p/1349826#M6752</guid>
      <dc:creator>Tommy Jensen</dc:creator>
      <dc:date>2020-06-28T10:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Now-Modal - change size --- Now Experience</title>
      <link>https://www.servicenow.com/community/developer-forum/now-modal-change-size-now-experience/m-p/1349827#M6753</link>
      <description>&lt;P&gt;Can you try&amp;nbsp;using&amp;nbsp;px (like 800px) instead of 100%, and see if that works? 100% width limits the size to the container's width.&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Rishabh Jha&lt;/P&gt;
&lt;P&gt;Aavenir (&lt;A href="http://www.aavenir.com/" rel="nofollow"&gt;http://www.aavenir.com/&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2020 14:06:19 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/now-modal-change-size-now-experience/m-p/1349827#M6753</guid>
      <dc:creator>Rishabh Jha</dc:creator>
      <dc:date>2020-06-28T14:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Now-Modal - change size --- Now Experience</title>
      <link>https://www.servicenow.com/community/developer-forum/now-modal-change-size-now-experience/m-p/1349828#M6754</link>
      <description>&lt;P&gt;I have done that already. Nothing changes the size. Regardless if I use %, px or rem sizes.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2020 14:11:58 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/now-modal-change-size-now-experience/m-p/1349828#M6754</guid>
      <dc:creator>Tommy Jensen</dc:creator>
      <dc:date>2020-06-28T14:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Now-Modal - change size --- Now Experience</title>
      <link>https://www.servicenow.com/community/developer-forum/now-modal-change-size-now-experience/m-p/3065980#M1150896</link>
      <description>&lt;P&gt;any solution of this, I am also facing same issue&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 05:32:30 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/now-modal-change-size-now-experience/m-p/3065980#M1150896</guid>
      <dc:creator>Mah2</dc:creator>
      <dc:date>2024-10-07T05:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Now-Modal - change size --- Now Experience</title>
      <link>https://www.servicenow.com/community/developer-forum/now-modal-change-size-now-experience/m-p/3099229#M1158103</link>
      <description>&lt;P&gt;You may want to use size: custom&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://horizon.servicenow.com/workspace/components/now-modal" target="_blank"&gt;https://horizon.servicenow.com/workspace/components/now-modal&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-11-07 at 1.56.41 PM.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/400193i74AB25C1D4047670/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-11-07 at 1.56.41 PM.png" alt="Screenshot 2024-11-07 at 1.56.41 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 18:57:04 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/now-modal-change-size-now-experience/m-p/3099229#M1158103</guid>
      <dc:creator>Kevin83</dc:creator>
      <dc:date>2024-11-07T18:57:04Z</dc:date>
    </item>
  </channel>
</rss>

