File tree Expand file tree Collapse file tree
stanzas/idorg-resolution-bar Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,13 +45,13 @@ class SearchHelper extends React.Component<SearchHelperProps> {
4545 { ( ( ) => {
4646 switch ( evaluation ) {
4747 case SearchStates . VALID_CURIE :
48- return < i className = "icon icon-common icon-check-circle size-200 text-success mr -2" />
48+ return < i className = "icon icon-common icon-check-circle size-200 text-success me -2" />
4949 case SearchStates . NO_CURIE : case SearchStates . QUERYING_NAMESPACES :
50- return < i className = "icon icon-common icon-info size-200 text-primary mr -2" />
50+ return < i className = "icon icon-common icon-info size-200 text-primary me -2" />
5151 case SearchStates . PREFIX_ONLY : case SearchStates . PREFIX_WITH_COLON :
52- return < i className = "icon icon-common icon-exclamation-triangle size-200 text-warning mr -2" />
52+ return < i className = "icon icon-common icon-exclamation-triangle size-200 text-warning me -2" />
5353 case SearchStates . INVALID_PREFIX : case SearchStates . INVALID_LOCAL_ID :
54- return < i className = "icon icon-common icon-times-circle size-200 text-danger mr -2" />
54+ return < i className = "icon icon-common icon-times-circle size-200 text-danger me -2" />
5555 }
5656 } ) ( ) }
5757 { ( ( ) => {
@@ -143,7 +143,7 @@ class SearchHelper extends React.Component<SearchHelperProps> {
143143 < td className = "p-0 text-block" >
144144 < small >
145145 < a href = { idorgURI } target = '_blank' > { idorgURI } </ a >
146- < button className = 'text-muted ms-1 btn btn-link clear-link' title = 'copy to clipboard'
146+ < button className = 'text-muted ms-1 btn btn-link clear-link p-0 ' title = 'copy to clipboard'
147147 onClick = { ( ev : any ) => this . copyToClipboard ( idorgURI , ev ) } >
148148 < i className = "icon icon-common icon-copy" > </ i >
149149 </ button >
Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ export default class ResolutionBar extends Stanza {
1919 < Search onButtonClick = { alert } { ...props } />
2020 ) ;
2121
22- clearCustomCss ( this ) ;
23- addCustomCss ( this , "//docs.identifiers.org/togostanza-widgets/idorg-resolution-bar/assets/EBI-Icon-fonts/fonts.css" ) ;
22+ this . importWebFontCSS ( "//docs.identifiers.org/togostanza-widgets/idorg-resolution-bar/assets/EBI-Icon-fonts/fonts.css" ) ;
2423 }
2524
2625 handleAttributeChange ( ) {
@@ -29,7 +28,6 @@ export default class ResolutionBar extends Stanza {
2928 < Search onButtonClick = { alert } { ...props } />
3029 ) ;
3130
32- clearCustomCss ( this ) ;
33- addCustomCss ( this , "//docs.identifiers.org/togostanza-widgets/idorg-resolution-bar/assets/EBI-Icon-fonts/fonts.css" ) ;
31+ this . importWebFontCSS ( "//docs.identifiers.org/togostanza-widgets/idorg-resolution-bar/assets/EBI-Icon-fonts/fonts.css" ) ;
3432 }
3533}
You can’t perform that action at this time.
0 commit comments