<?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>topic Re: Styling AttachmentEditor &amp;quot;Choose File&amp;quot; Button in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-attachmenteditor-quot-choose-file-quot/m-p/227490#M21242</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wonder if you could replace the button like in this example?&amp;nbsp;&lt;A class="link-titled" href="http://jsfiddle.net/4cwpLvae/" title="http://jsfiddle.net/4cwpLvae/"&gt;Edit fiddle - JSFiddle&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe you can find some answers here?&amp;nbsp;&lt;A class="link-titled" href="https://stackoverflow.com/questions/572768/styling-an-input-type-file-button" title="https://stackoverflow.com/questions/572768/styling-an-input-type-file-button"&gt;html - Styling an input type="file" button - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Oct 2017 15:25:08 GMT</pubDate>
    <dc:creator>TimWitt2</dc:creator>
    <dc:date>2017-10-12T15:25:08Z</dc:date>
    <item>
      <title>Styling AttachmentEditor "Choose File" Button</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-attachmenteditor-quot-choose-file-quot/m-p/227489#M21241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to style the Choose File button in the JSAPI attachmenteditor? I want to make it look consistent with the other dojo claro buttons in my app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 14:32:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-attachmenteditor-quot-choose-file-quot/m-p/227489#M21241</guid>
      <dc:creator>KeithGerhartz1</dc:creator>
      <dc:date>2017-10-12T14:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Styling AttachmentEditor "Choose File" Button</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-attachmenteditor-quot-choose-file-quot/m-p/227490#M21242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wonder if you could replace the button like in this example?&amp;nbsp;&lt;A class="link-titled" href="http://jsfiddle.net/4cwpLvae/" title="http://jsfiddle.net/4cwpLvae/"&gt;Edit fiddle - JSFiddle&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe you can find some answers here?&amp;nbsp;&lt;A class="link-titled" href="https://stackoverflow.com/questions/572768/styling-an-input-type-file-button" title="https://stackoverflow.com/questions/572768/styling-an-input-type-file-button"&gt;html - Styling an input type="file" button - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 15:25:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-attachmenteditor-quot-choose-file-quot/m-p/227490#M21242</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2017-10-12T15:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Styling AttachmentEditor "Choose File" Button</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-attachmenteditor-quot-choose-file-quot/m-p/227491#M21243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think there's a set way to do this across browsers. &amp;nbsp;The "standard" hack is to hide the file input, use your own button, and programmatically click the hidden input when the user clicks the button.&amp;nbsp; This is pretty ugly but it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Webkit browsers (chrome, safari) can use this CSS pseudoselector to select the button, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;input[type="file"]::-webkit-file-upload-button{
&amp;nbsp; // style button here
}‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:04:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-attachmenteditor-quot-choose-file-quot/m-p/227491#M21243</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2021-12-11T11:04:55Z</dc:date>
    </item>
  </channel>
</rss>

