-
Notifications
You must be signed in to change notification settings - Fork 516
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(bem): Add BEM-styling to the Stats widget
Updated the Stats widget to use ais-stats BEM classes. Exact same rendering as before, but open the way to theme creation. BREAKING CHANGE: We now use a `span.ais-stats--time` instead of a `small` tag in the stats widget.
- Loading branch information
1 parent
6b42e34
commit 92cebeb
Showing
5 changed files
with
36 additions
and
34 deletions.
There are no files selected for viewing
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.ais-stats { | ||
} | ||
.ais-stats--time { | ||
font-size: small; | ||
} |
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<div> | ||
<div class="{{cssClasses.root}}"> | ||
{{#hasNoResults}}No results{{/hasNoResults}} | ||
{{#hasOneResult}}1 result{{/hasOneResult}} | ||
{{#hasManyResults}}{{#helpers.formatNumber}}{{nbHits}}{{/helpers.formatNumber}} results{{/hasManyResults}} | ||
<small>found in {{processingTimeMS}}ms</small> | ||
<span class="{{cssClasses.time}}">found in {{processingTimeMS}}ms</span> | ||
</div> |