Last active
February 21, 2020 05:23
Revisions
-
mikezimm revised this gist
Feb 21, 2020 . No changes.There are no files selected for viewing
-
mikezimm revised this gist
Feb 21, 2020 . 1 changed file with 13 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,16 +1,21 @@ @import '~office-ui-fabric-react/dist/sass/References.scss'; .myWebPartClass { //Key is using this format.... and reference this page for more details //https://www.w3.org/TR/CSS21/selector.html%23id-selectors#type-selectors //Basically, this will get any child elements of className={ styles.listViewTransparent } //Then find only items where the property data-automationid = DetailsRowFields. //You can use this syntax and others to filter on any element property, wildcard etc.... .listViewTransparent *[data-automationid="DetailsRowFields"] { background-color: #eaeaea ; transition: all 0.3s ease; } .listViewTransparent *[data-automationid="DetailsRowFields"] :hover { background-color: #c2c2c2 ; color: #212121; transition: all 0.3s ease; } } -
mikezimm created this gist
Feb 21, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ @import '~office-ui-fabric-react/dist/sass/References.scss'; .myWebPartClass { .listViewTransparent *[data-automationid="DetailsRowFields"] { background-color: #eaeaea ; transition: all 0.3s ease; } .listViewTransparent *[data-automationid="DetailsRowFields"] :hover { background-color: #c2c2c2 ; color: #212121; transition: all 0.3s ease; } } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ export function xyz(){ let listView = <div className={ styles.listViewTransparent }> <ListView items={theseAreItems} viewFields={viewFields} /> </div>; }