Add and use a constant for the collapsed CSS class
This commit is contained in:
@@ -48,6 +48,16 @@ export const CLASS_UNSUPPORTED = 'ol-unsupported';
|
||||
export const CLASS_CONTROL = 'ol-control';
|
||||
|
||||
|
||||
/**
|
||||
* The CSS class that we'll give the DOM elements that are collapsed, i.e.
|
||||
* to those elements which usually can be expanded.
|
||||
*
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
export const CLASS_COLLAPSED = 'ol-collapsed';
|
||||
|
||||
|
||||
/**
|
||||
* Get the list of font families from a font spec. Note that this doesn't work
|
||||
* for font families that have commas in them.
|
||||
|
||||
Reference in New Issue
Block a user