File tree Expand file tree Collapse file tree 1 file changed +34
-3
lines changed
Expand file tree Collapse file tree 1 file changed +34
-3
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,11 @@ registerIcon(
155155 'https://unpkg.com/[email protected] /action/svg/production/ic_home_24px.svg' 156156) ;
157157
158+ const indicatorIcon =
159+ '<svg xmlns="http://www.w3.org/2000/svg" fill="none"><path d="M3.993 12.508V.765h-.979v11.743h.979ZM1.54 10.06V3.21H.56v6.85h.98Z" fill="#09F"/></svg>' ;
160+
161+ registerIconFromText ( 'indicator' , indicatorIcon ) ;
162+
158163const tiles = Array . from (
159164 map (
160165 range ( 10 ) ,
@@ -840,6 +845,24 @@ function handleMaximizeClick(event: Event) {
840845export const CustomActions : Story = {
841846 render : ( args ) => html `
842847 < style >
848+ .side ,
849+ .corner ,
850+ .bottom {
851+ display : inline;
852+ width : 100% ;
853+ height : 100% ;
854+ }
855+
856+ .corner {
857+ transform : rotate (220deg );
858+ bottom : 8px ;
859+ right : 8px ;
860+ }
861+
862+ .bottom {
863+ transform : rotate (90deg );
864+ }
865+
843866 p {
844867 padding : 1rem ;
845868 }
@@ -853,9 +876,17 @@ export const CustomActions: Story = {
853876 >
854877 < igc-tile disable-fullscreen disable-maximize >
855878 < h3 slot ="title "> Custom Actions</ h3 >
856- < div slot ="side-adorner "> 🟨</ div >
857- < div slot ="corner-adorner "> 🟩</ div >
858- < div slot ="bottom-adorner "> 🟦</ div >
879+ < igc-icon slot ="side-adorner " class ="side " name ="indicator "> </ igc-icon >
880+ < igc-icon
881+ slot ="corner-adorner "
882+ class ="corner "
883+ name ="indicator "
884+ > </ igc-icon >
885+ < igc-icon
886+ slot ="bottom-adorner "
887+ class ="bottom "
888+ name ="indicator "
889+ > </ igc-icon >
859890
860891 < igc-icon-button
861892 slot ="actions "
You can’t perform that action at this time.
0 commit comments