File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
src/block/table-of-contents Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,18 @@ export const attributes = ( version = VERSION ) => {
148148 versionDeprecated : '' ,
149149 } )
150150
151+ attrObject . add ( {
152+ attributes : {
153+ scrollTopOffset : {
154+ type : 'number' ,
155+ default : '' ,
156+ stkResponsive : true ,
157+ } ,
158+ } ,
159+ versionAdded : '3.19.3' ,
160+ versionDeprecated : '' ,
161+ } )
162+
151163 return attrObject . getMerged ( version )
152164}
153165export default attributes ( VERSION )
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ blockStyles.addBlockStyles( 'isSmoothScroll', [ {
121121 valueCallback : value => ( value ? 'smooth' : undefined ) ,
122122} ] )
123123
124- blockStyles . addBlockStyle ( 'scrollTopOffset' , [ {
124+ blockStyles . addBlockStyles ( 'scrollTopOffset' , [ {
125125 selector : 'html' ,
126126 styleRule : 'scroll-padding-top' ,
127127 attrName : 'scrollTopOffset' ,
You can’t perform that action at this time.
0 commit comments