mirror of
https://github.com/twitter/twemoji.git
synced 2025-01-30 15:32:39 +00:00
Allow for configurable className
This commit is contained in:
parent
b8a92ab762
commit
e6e5610e5b
@ -312,6 +312,9 @@ function createTwemoji(re) {
|
|||||||
// available via Twitter CDN: 16, 36, 72
|
// available via Twitter CDN: 16, 36, 72
|
||||||
size: '36x36',
|
size: '36x36',
|
||||||
|
|
||||||
|
// default class name, by default 'emoji'
|
||||||
|
className: 'emoji',
|
||||||
|
|
||||||
// basic utilities / helpers to convert code points
|
// basic utilities / helpers to convert code points
|
||||||
// to JavaScript surrogates and vice versa
|
// to JavaScript surrogates and vice versa
|
||||||
convert: {
|
convert: {
|
||||||
@ -754,7 +757,7 @@ function createTwemoji(re) {
|
|||||||
base: typeof how.base === 'string' ? how.base : twemoji.base,
|
base: typeof how.base === 'string' ? how.base : twemoji.base,
|
||||||
ext: how.ext || twemoji.ext,
|
ext: how.ext || twemoji.ext,
|
||||||
size: how.folder || toSizeSquaredAsset(how.size || twemoji.size),
|
size: how.folder || toSizeSquaredAsset(how.size || twemoji.size),
|
||||||
className:how.className || 'emoji'
|
className:how.className || twemoji.className
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user