#8225 Change to menu hook to make it use "style" attribute